Skip to content

Commit 505ddf5

Browse files
committed
Update snapshots so tests pass
1 parent e144890 commit 505ddf5

File tree

4 files changed

+43
-34
lines changed

4 files changed

+43
-34
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules
66
*.map
77
dist/
88
dist_tests/
9+
yarn-error.log

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"clean": "shx rm -rf dist",
1818
"lint": "tslint -c tslint.json src/*.ts",
1919
"tdd": "concurrently -r -p '' -k 'npm run watch' 'npm run watch:test'",
20-
"test": "ava --verbose",
20+
"test": "ava --serial --verbose",
2121
"prepublishOnly": "npm test",
2222
"pretest": "npm run build",
2323
"watch": "tsc -w",

test/__snapshots__/test/test.ts.md

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ Generated by [AVA](https://ava.li).
105105
106106
export type PositiveInteger = number;␊
107107
export type PositiveIntegerDefault0 = PositiveInteger;␊
108-
export type SchemaArray = [HttpJsonSchemaOrgDraft04Schema, ...(HttpJsonSchemaOrgDraft04Schema)[]];␊
109-
export type StringArray = [string, ...(string)[]];␊
108+
export type SchemaArray = [HttpJsonSchemaOrgDraft04Schema, ...HttpJsonSchemaOrgDraft04Schema[]];␊
109+
export type StringArray = [string, ...string[]];␊
110110
export type SimpleTypes = "array" | "boolean" | "integer" | "null" | "number" | "object" | "string";␊
111111
112112
/**␊
@@ -147,8 +147,8 @@ Generated by [AVA](https://ava.li).
147147
dependencies?: {␊
148148
[k: string]: HttpJsonSchemaOrgDraft04Schema | StringArray;␊
149149
};␊
150-
enum?: [any, ...(any)[]];␊
151-
type?: SimpleTypes | [SimpleTypes, ...(SimpleTypes)[]];␊
150+
enum?: [any, ...any[]];␊
151+
type?: SimpleTypes | [SimpleTypes, ...SimpleTypes[]];␊
152152
allOf?: SchemaArray;␊
153153
anyOf?: SchemaArray;␊
154154
oneOf?: SchemaArray;␊
@@ -603,7 +603,7 @@ Generated by [AVA](https://ava.li).
603603
}␊
604604
export interface Bar {␊
605605
a?: "a" | "b" | "c";␊
606-
bam?: ("wam")[];␊
606+
bam?: "wam"[];␊
607607
[k: string]: any;␊
608608
}␊
609609
export interface Baz {␊
@@ -652,16 +652,16 @@ Generated by [AVA](https://ava.li).
652652
653653
export interface ArrayAdditionalItems {␊
654654
namedEums?: {␊
655-
additionalItemsAny?: [] | [NamedEnum2, ...(any)[]];␊
656-
additionalItems?: [] | [NamedEnum21, ...(NamedEnum22)[]];␊
655+
additionalItemsAny?: [] | [NamedEnum2, ...any[]];␊
656+
additionalItems?: [] | [NamedEnum21, ...NamedEnum22[]];␊
657657
};␊
658658
unnamedEmums?: {␊
659-
additionalItemsAny?: [] | [(1 | 2 | 3), ...(any)[]];␊
660-
additionalItems?: [] | [("One" | "Two" | "Three"), ...(4 | 5 | 6)[]];␊
659+
additionalItemsAny?: [] | [1 | 2 | 3, ...any[]];␊
660+
additionalItems?: [] | ["One" | "Two" | "Three", ...(4 | 5 | 6)[]];␊
661661
};␊
662662
namedSchema?: {␊
663-
additionalItemsAny?: [] | [StringSchema1] | [StringSchema1, NumberSchema1, ...(any)[]];␊
664-
additionalItems?: [] | [StringSchema2] | [StringSchema2, NumberSchema2, ...(BooleanSchema1)[]];␊
663+
additionalItemsAny?: [] | [StringSchema1] | [StringSchema1, NumberSchema1, ...any[]];␊
664+
additionalItems?: [] | [StringSchema2] | [StringSchema2, NumberSchema2, ...BooleanSchema1[]];␊
665665
};␊
666666
schema?: {␊
667667
additionalItemsAny?:␊
@@ -681,7 +681,7 @@ Generated by [AVA](https://ava.li).
681681
bar?: number;␊
682682
[k: string]: any;␊
683683
},␊
684-
...(any)[]␊
684+
...any[]␊
685685
];␊
686686
additionalItems?:␊
687687
| []␊
@@ -700,23 +700,23 @@ Generated by [AVA](https://ava.li).
700700
bar?: number;␊
701701
[k: string]: any;␊
702702
},␊
703-
...({␊
703+
...{␊
704704
baz?: boolean;␊
705705
[k: string]: any;␊
706-
})[]␊
706+
}[]␊
707707
];␊
708708
};␊
709709
ofType?: {␊
710-
additonalItemsAny?: [] | [number] | [number, string, ...(any)[]];␊
711-
additonalItems?: [] | [number] | [number, string, ...(boolean)[]];␊
710+
additonalItemsAny?: [] | [number] | [number, string, ...any[]];␊
711+
additonalItems?: [] | [number] | [number, string, ...boolean[]];␊
712712
};␊
713713
refs?: {␊
714-
additionalItemsAny?: [] | [ExampleSchema, ...(any)[]];␊
715-
additionalItems?: [] | [ExampleSchema1, ...(ExampleSchema2)[]];␊
714+
additionalItemsAny?: [] | [ExampleSchema, ...any[]];␊
715+
additionalItems?: [] | [ExampleSchema1, ...ExampleSchema2[]];␊
716716
};␊
717717
defs?: {␊
718-
additionalItemsAny?: [] | [FirstDefinition, ...(any)[]];␊
719-
additionalItems?: [] | [UnrelatedTitle, ...(ThirdDefinition)[]];␊
718+
additionalItemsAny?: [] | [FirstDefinition, ...any[]];␊
719+
additionalItems?: [] | [UnrelatedTitle, ...ThirdDefinition[]];␊
720720
};␊
721721
}␊
722722
export interface StringSchema1 {␊
@@ -818,7 +818,7 @@ Generated by [AVA](https://ava.li).
818818
/**␊
819819
* minItems = 3␊
820820
*/␊
821-
withMinItems?: [string, string, string, ...(string)[]];␊
821+
withMinItems?: [string, string, string, ...string[]];␊
822822
/**␊
823823
* maxItems = 3␊
824824
*/␊
@@ -850,7 +850,7 @@ Generated by [AVA](https://ava.li).
850850
/**␊
851851
* minItems = 3␊
852852
*/␊
853-
withMinItems?: [any, any, any, ...(any)[]];␊
853+
withMinItems?: [any, any, any, ...any[]];␊
854854
/**␊
855855
* maxItems = 3␊
856856
*/␊
@@ -886,7 +886,7 @@ Generated by [AVA](https://ava.li).
886886
/**␊
887887
* minItems = 8␊
888888
*/␊
889-
withMinItemsGreaterThanItemLength?: [1, 2, 3, 4, 5, 6, ...(any)[]];␊
889+
withMinItemsGreaterThanItemLength?: [1, 2, 3, 4, 5, 6, ...any[]];␊
890890
/**␊
891891
* maxItems = 2␊
892892
*/␊
@@ -988,11 +988,11 @@ Generated by [AVA](https://ava.li).
988988
data: any;␊
989989
valid: boolean;␊
990990
},␊
991-
...({␊
991+
...{␊
992992
description: string;␊
993993
data: any;␊
994994
valid: boolean;␊
995-
})[]␊
995+
}[]␊
996996
];␊
997997
}[];␊
998998
`
@@ -1159,7 +1159,8 @@ Generated by [AVA](https://ava.li).
11591159
| {␊
11601160
baz?: number;␊
11611161
[k: string]: any;␊
1162-
})␊
1162+
}␊
1163+
)␊
11631164
| Bar;␊
11641165
}␊
11651166
export interface Foo {␊
@@ -5730,7 +5731,8 @@ Generated by [AVA](https://ava.li).
57305731
| "HPUX"␊
57315732
| "Solaris"␊
57325733
| "NetWare"␊
5733-
| "iSeries");␊
5734+
| "iSeries"␊
5735+
);␊
57345736
export type Subnet = string | null;␊
57355737
export type Address = string | null;␊
57365738
export type Mac = string | null;␊
@@ -5792,7 +5794,8 @@ Generated by [AVA](https://ava.li).
57925794
| "SMTP"␊
57935795
| "SHAREPOINT"␊
57945796
| "VSPHERE"␊
5795-
| "UNSET");␊
5797+
| "UNSET"␊
5798+
);␊
57965799
export type Username1 = string | null;␊
57975800
export type Password3 = string | null;␊
57985801
export type Domain1 = string | null;␊
@@ -6050,7 +6053,8 @@ Generated by [AVA](https://ava.li).
60506053
| GetDate1␊
60516054
| UpdateXmlValues1␊
60526055
| VerifyExchangeDBReseed1␊
6053-
| CalculateFileHash1)[];␊
6056+
| CalculateFileHash1␊
6057+
)[];␊
60546058
export type AgentControl1 = BaseCommand & AgentControl;␊
60556059
export type Machine2 = string | null;␊
60566060
export type Action = Actions;␊
@@ -6388,7 +6392,8 @@ Generated by [AVA](https://ava.li).
63886392
| "DisallowRestore"␊
63896393
| "EnableFailover"␊
63906394
| "DisableFailover"␊
6391-
| "Undefined");␊
6395+
| "Undefined"␊
6396+
);␊
63926397
export type ExpectedDBStatus = DBCopyStatus;␊
63936398
export type DBCopyStatus = (string | null) &␊
63946399
(␊
@@ -6402,7 +6407,8 @@ Generated by [AVA](https://ava.li).
64026407
| "Failed"␊
64036408
| "FailedAndSuspended"␊
64046409
| "ServiceDown"␊
6405-
| "Undefined");␊
6410+
| "Undefined"␊
6411+
);␊
64066412
export type ExpectedDBIndexState = DBContentIndexState;␊
64076413
export type DBContentIndexState = (string | null) &␊
64086414
("Healthy" | "Unknown" | "Crawling" | "Failed" | "Corrupt" | "Suspended" | "Undefined");␊
@@ -6488,7 +6494,8 @@ Generated by [AVA](https://ava.li).
64886494
| "UnregisterVM"␊
64896495
| "Deploy"␊
64906496
| "ConvertToTemplate"␊
6491-
| "ConvertToVM");␊
6497+
| "ConvertToVM"␊
6498+
);␊
64926499
export type Target9 = string | null;␊
64936500
export type Cleanup = boolean | null;␊
64946501
export type ExtraDeployOptions = string | null;␊
@@ -6638,7 +6645,8 @@ Generated by [AVA](https://ava.li).
66386645
| "VSPHERE_VM_FOLDERS"␊
66396646
| "VSPHERE_RESOURCE_POOLS"␊
66406647
| "ALL"␊
6641-
| "ALTERNATE_SAFESET_LOCATION");␊
6648+
| "ALTERNATE_SAFESET_LOCATION"␊
6649+
);␊
66426650
export type Agent8 = string | null;␊
66436651
export type Vault4 = string | null;␊
66446652
export type Name7 = string | null;␊
280 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)