-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to external snapshots due to bug with inline
- Loading branch information
Showing
3 changed files
with
111 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`refuses to run migration with invalid hash 1`] = `"Hash for 000002.sql does not match - sha1:cbed240dda7dfa510ff785783bbe6af7743b3a11 !== sha1:bddc1ead3310dc1c42cdc7f63537ebdff2e9fd7b; has the file been tampered with?"`; | ||
|
||
exports[`runs migrations 1`] = ` | ||
[ | ||
{ | ||
"filename": "000001.sql", | ||
"hash": "sha1:e00ec93314a423ee5cc68d1182ad52f16442d7df", | ||
"previous_hash": null, | ||
}, | ||
{ | ||
"filename": "000002.sql", | ||
"hash": "sha1:bddc1ead3310dc1c42cdc7f63537ebdff2e9fd7b", | ||
"previous_hash": "sha1:e00ec93314a423ee5cc68d1182ad52f16442d7df", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`runs migrations 2`] = ` | ||
[ | ||
"foo", | ||
] | ||
`; | ||
|
||
exports[`runs migrations 3`] = ` | ||
[ | ||
{ | ||
"typname": "user_role", | ||
"value_count": "1", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`runs migrations 4`] = ` | ||
[ | ||
{ | ||
"filename": "000001.sql", | ||
"hash": "sha1:e00ec93314a423ee5cc68d1182ad52f16442d7df", | ||
"previous_hash": null, | ||
}, | ||
{ | ||
"filename": "000002.sql", | ||
"hash": "sha1:bddc1ead3310dc1c42cdc7f63537ebdff2e9fd7b", | ||
"previous_hash": "sha1:e00ec93314a423ee5cc68d1182ad52f16442d7df", | ||
}, | ||
{ | ||
"filename": "000003.sql", | ||
"hash": "sha1:2d248344ac299ebbad2aeba5bfec2ae3c3cb0a4f", | ||
"previous_hash": "sha1:bddc1ead3310dc1c42cdc7f63537ebdff2e9fd7b", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`runs migrations 5`] = ` | ||
[ | ||
"foo", | ||
] | ||
`; | ||
|
||
exports[`runs migrations 6`] = ` | ||
[ | ||
{ | ||
"typname": "user_role", | ||
"value_count": "2", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`will run a migration with invalid hash if told to do so 1`] = ` | ||
[ | ||
{ | ||
"filename": "000001.sql", | ||
"hash": "sha1:e00ec93314a423ee5cc68d1182ad52f16442d7df", | ||
"previous_hash": null, | ||
}, | ||
{ | ||
"filename": "000002.sql", | ||
"hash": "sha1:bddc1ead3310dc1c42cdc7f63537ebdff2e9fd7b", | ||
"previous_hash": "sha1:e00ec93314a423ee5cc68d1182ad52f16442d7df", | ||
}, | ||
{ | ||
"filename": "000003.sql", | ||
"hash": "sha1:2d248344ac299ebbad2aeba5bfec2ae3c3cb0a4f", | ||
"previous_hash": "sha1:bddc1ead3310dc1c42cdc7f63537ebdff2e9fd7b", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`will run a migration with invalid hash if told to do so 2`] = ` | ||
[ | ||
{ | ||
"typname": "user_role", | ||
"value_count": "2", | ||
}, | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters