Skip to content

Commit f93b7af

Browse files
authored
[#174706105] Fix e2e test (#195)
1 parent 36e2abd commit f93b7af

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

e2e/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"typescript": "^3.8.3"
2121
},
2222
"dependencies": {
23-
"italia-utils": "file:../",
24-
"fp-ts": "1.12.0",
23+
"fp-ts": "1.19.5",
2524
"io-ts": "1.8.5",
26-
"italia-ts-commons": "^5.1.13"
25+
"italia-ts-commons": "^5.1.13",
26+
"italia-utils": "file:../"
2727
},
2828
"jest": {
2929
"testEnvironment": "node",

e2e/src/__tests__/test-api/client.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describeSuite("Http client generated from Test API spec", () => {
3232
bearerToken: "acb123",
3333
qr: "acb123"
3434
});
35-
expect(isRight(result)).toBe(false);
35+
expect(isRight(result)).toBe(true);
3636
});
3737

3838
it("should make a call, with default parameters", async () => {
@@ -49,6 +49,6 @@ describeSuite("Http client generated from Test API spec", () => {
4949
const result = await client.testAuthBearer({
5050
qr: "acb123"
5151
});
52-
expect(isRight(result)).toBe(false);
52+
expect(isRight(result)).toBe(true);
5353
});
5454
});

e2e/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ [email protected]:
18221822
resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-1.12.0.tgz#d333310e4ac104cdcb6bea47908e381bb09978e7"
18231823
integrity sha512-fWwnAgVlTsV26Ruo9nx+fxNHIm6l1puE1VJ/C0XJ3nRQJJJIgRHYw6sigB3MuNFZL1o4fpGlhwFhcbxHK0RsOA==
18241824

1825-
fp-ts@^1.0.0:
1825+
fp-ts@1.19.5, fp-ts@^1.0.0:
18261826
version "1.19.5"
18271827
resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-1.19.5.tgz#3da865e585dfa1fdfd51785417357ac50afc520a"
18281828
integrity sha512-wDNqTimnzs8QqpldiId9OavWK2NptormjXnRJTQecNjzwfyp6P/8s/zG8e4h3ja3oqkKaY72UlTjQYt/1yXf9A==

0 commit comments

Comments
 (0)