Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
fix: breaking snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleyzissou committed Oct 22, 2020
1 parent 20eb4b1 commit a627630
Showing 1 changed file with 66 additions and 2 deletions.
68 changes: 66 additions & 2 deletions packages/datastore/cli/tests/__snapshots__/Cli.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ export interface Comment {
}
export type CommentCreate = Omit<Comment, \\"_id\\">;
export type CommentChange = Pick<Comment, \\"_id\\"> & Partial<CommentCreate>;"
export type CommentChange = Pick<Comment, \\"_id\\"> & Partial<CommentCreate>;
export interface Whatever {
_id: string;
_version: string;
_lastUpdatedAt: number
}
export type WhateverCreate = Omit<Whatever, \\"_id\\">;
export type WhateverChange = Pick<Whatever, \\"_id\\"> & Partial<WhateverCreate>;"
`;
exports[`generate with defaults 2`] = `
Expand Down Expand Up @@ -98,6 +106,30 @@ exports[`generate with defaults 2`] = `
\\"isRequired\\": true
}
}
},
\\"Whatever\\": {
\\"name\\": \\"Whatever\\",
\\"version\\": 1,
\\"type\\": \\"object\\",
\\"primaryKey\\": \\"_id\\",
\\"properties\\": {
\\"_id\\": {
\\"type\\": \\"string\\",
\\"key\\": \\"_id\\",
\\"isRequired\\": true,
\\"primary\\": true
},
\\"_version\\": {
\\"type\\": \\"string\\",
\\"key\\": \\"_version\\",
\\"isRequired\\": true
},
\\"_lastUpdatedAt\\": {
\\"type\\": \\"number\\",
\\"key\\": \\"_lastUpdatedAt\\",
\\"isRequired\\": true
}
}
}
}"
`;
Expand Down Expand Up @@ -131,7 +163,15 @@ export interface Comment {
}
export type CommentCreate = Omit<Comment, \\"_id\\">;
export type CommentChange = Pick<Comment, \\"_id\\"> & Partial<CommentCreate>;"
export type CommentChange = Pick<Comment, \\"_id\\"> & Partial<CommentCreate>;
export interface Whatever {
_id: string;
_version: string;
_lastUpdatedAt: number
}
export type WhateverCreate = Omit<Whatever, \\"_id\\">;
export type WhateverChange = Pick<Whatever, \\"_id\\"> & Partial<WhateverCreate>;"
`;
exports[`generate with positional arguments 2`] = `
Expand Down Expand Up @@ -208,6 +248,30 @@ exports[`generate with positional arguments 2`] = `
\\"isRequired\\": true
}
}
},
\\"Whatever\\": {
\\"name\\": \\"Whatever\\",
\\"version\\": 1,
\\"type\\": \\"object\\",
\\"primaryKey\\": \\"_id\\",
\\"properties\\": {
\\"_id\\": {
\\"type\\": \\"string\\",
\\"key\\": \\"_id\\",
\\"isRequired\\": true,
\\"primary\\": true
},
\\"_version\\": {
\\"type\\": \\"string\\",
\\"key\\": \\"_version\\",
\\"isRequired\\": true
},
\\"_lastUpdatedAt\\": {
\\"type\\": \\"number\\",
\\"key\\": \\"_lastUpdatedAt\\",
\\"isRequired\\": true
}
}
}
}"
`;
Expand Down

0 comments on commit a627630

Please sign in to comment.