Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Natoandro committed Dec 4, 2023
1 parent d4103b1 commit c15dfda
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ snapshot[`typegraphs creation 3`] = `
"idempotent": true
},
"data": {
"code": "file:scripts/three.ts;base64:H4sIAAAAAAAA/+1Z727bNhD3Zz0FoX6ROlW1bCcdvKnY1nZdhxYL2mwYYBgCLdG2Vv2bSC32DL/J3mYvtiOp/5JjF0uCrfABiUXyeLw7Ho+nn9w4TAKyMZPt4N5oCHQ5mYhfoPbveHwxGVjDyaU1HA1HY95vWSPrcjAcPABllOEUocG/pbZx/xN6hF7EyTb1V2uG3hGG2TYh6Ke//zJQ4LskosRDWeSRFLE1Qe/iP/0gwOgqW8Aoeis50C8kpX4coZE5NJVH6MPVy1+f5GNP3ngkYv7SJ+kUvbt6+wR4FGWZxiHiK61SnKyRHyZxyhAzqr4Wiyn/JzjFIS34v83Y2gD1U2qg95iR/jmdZV73yU9iMGhbsFyJVpsnzcCSkFATTIoL1pfw/F4OKIryTcmtKQjIBeVsrqFscsJBEN84bkqEY3BA7e/hHzFaDGuCwevUns3bIyFh69iDEfX1q2u1MxzDXvoRjD6uj5FNElPSKzXEGweviEOJa1ujoRzQ5U8KbrW5byv9b/zIg2U49+XQaHcHfugzEPNlNfJ7RtJtPlDrDmIXBw7ZuIRS+6Lqd+OIkQ1z/DJwbDWjJFVLxXTFI0vECGWOK7OXw91OtdVUbq4+Faxim+z6Dmm6GEiyBfTLTTYTEcswIoZoHJJrfgRsxEzK0sxllem78omTGkdEnQJb4FOmMdMHvVck1XQDhbABYwNFOCS2en0Tq7rRnMqgj0+NEwYHBwfaykzJUlM/5Murem3GvnqUEkuu3CVKHmvCF6dqjx1g8KOV0EM+am01sbMMYswEi3jSuGWWOQQTs4D5sJ4TL204052ZkUOiLBQz+YM2E+4ypOnzH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DNzWi/5wdBsA67S4QaWg/pRQ4mMgKNMrzTJLqUNsF4UTpFcNRWord3R3sKHSmfBMKGxlsUqbdZcFmiLKHUws7qOtD16F/rKL/mnI6IEQFVCwzyGdhdv3WaS3g3daY91jCMd6UgPQ/8CAEP7twAeAAA="
}
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const snapshot = {};

snapshot[`typegraph validation 1`] = `
\`Command '"/home/natoandro/devel/metatypedev/metatype-3/target/debug/meta" "serialize" "-f" "typegraphs/python/validator.py"' failed with 1:
\`Command '"/home/natoandro/devel/metatypedev/metatype-3/target/debug/meta" "serialize" "-f" "validator.py"' failed with 1:
-- start STDERR --
[ERROR] at validator:/test/[in]/a: Expected number got '"1"'
Expand All @@ -24,7 +24,7 @@ snapshot[`typegraph validation 1`] = `
[ERROR] at validator:/testEnums/[out]/a: Expected a minimum length of 4, got "hi" (len=2)
[ERROR] at validator:/testEnums/[out]/a: Expected a string, got '12'
[ERROR] at validator:/testEnums/[out]/b: Expected float got '"13"'
Error: error while post processing typegraph validator from "typegraphs/python/validator.py": Typegraph validator failed validation
Error: error while post processing typegraph validator from "validator.py": Typegraph validator failed validation
-- end STDERR --\`
`;
File renamed without changes.
2 changes: 1 addition & 1 deletion typegate/tests/e2e/typegraph/validator_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Meta.test("typegraph validation", async (t) => {
"fail to serialize typegraph with invalid injection",
async () => {
try {
await m.cli({}, "serialize", "-f", "typegraphs/python/validator.py");
await m.cli({}, "serialize", "-f", "validator.py");
assert(false, "should have thrown");
} catch (e) {
await t.assertSnapshot(e.message);
Expand Down

0 comments on commit c15dfda

Please sign in to comment.