Skip to content

Commit

Permalink
test: disable logging in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pheekus committed Nov 11, 2020
1 parent 4848d9d commit d931856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/core/API/Node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Core', () => {
expect(Node).toHaveProperty('Response', Response);
});

const console = consola.create({ level: Infinity }).withTag('@foxy.io/sdk');
const console = consola.create({ level: -1 }).withTag('@foxy.io/sdk');
const cache = new MemoryStorage();
const path = [new URL('https://example.com/')] as [URL, ...string[]];

Expand Down
6 changes: 3 additions & 3 deletions tests/core/API/Response.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Core', () => {
const response = new Response({
body: null,
cache: new MemoryStorage(),
console: consola.create({ level: Infinity }).withTag('@foxy.io/sdk'),
console: consola.create({ level: -1 }).withTag('@foxy.io/sdk'),
fetch: () => Promise.resolve(new CrossFetchResponse(null)),
});

Expand All @@ -27,7 +27,7 @@ describe('Core', () => {
const response = new Response({
body: JSON.stringify(data),
cache: new MemoryStorage(),
console: consola.create({ level: Infinity }).withTag('@foxy.io/sdk'),
console: consola.create({ level: -1 }).withTag('@foxy.io/sdk'),
fetch: () => Promise.resolve(new CrossFetchResponse(null)),
});

Expand All @@ -48,7 +48,7 @@ describe('Core', () => {
const response = new Response({
body: JSON.stringify(data),
cache: new MemoryStorage(),
console: consola.create({ level: Infinity }).withTag('@foxy.io/sdk'),
console: consola.create({ level: -1 }).withTag('@foxy.io/sdk'),
fetch: () => Promise.resolve(new CrossFetchResponse(null)),
});

Expand Down

0 comments on commit d931856

Please sign in to comment.