Skip to content

Commit d749006

Browse files
committed
Make test expectation explicit
1 parent 4c35677 commit d749006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/npmRegistryUtils.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe(`npm registry utils fetchAsJson`, () => {
6666
expect(fetchMock).lastCalledWith(new URL(`${DEFAULT_NPM_REGISTRY_URL}/package-name`), expect.objectContaining({
6767
headers: {
6868
...DEFAULT_HEADERS,
69-
authorization: `Bearer ${process.env.COREPACK_NPM_TOKEN}`,
69+
authorization: `Bearer foo`,
7070
},
7171
}));
7272
});
@@ -110,7 +110,7 @@ describe(`npm registry utils fetchAsJson`, () => {
110110
expect(fetchMock).lastCalledWith(new URL(`https://registry.example.org/some/path/package-name`), expect.objectContaining({
111111
headers: {
112112
...DEFAULT_HEADERS,
113-
authorization: `Bearer ${process.env.COREPACK_NPM_TOKEN}`,
113+
authorization: `Bearer foo`,
114114
},
115115
}));
116116
});

0 commit comments

Comments
 (0)