Skip to content

Commit

Permalink
fix(frisby): remove unneeded reference to jest types (#48935)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Nov 21, 2020
1 parent 66c3011 commit d2e8a11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
23 changes: 6 additions & 17 deletions types/frisby/frisby-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,10 @@ frisby.globalSetup({
}
});

describe('Test Suite 1', () => {
it('should be a teapot get', (done) => {
frisby.get(URL + '/users/3.json')
.expect('status', 418)
.done(done);
});
frisby.get(URL + '/users/3.json')
.expect('status', 418)
.done(() => {});

it('should be a teapot post', (done) => {
frisby.post(URL + '/users/3.json')
.expect('status', 418)
.done(done);
});

it('should handle jest matchers', () => {
const str = 'bar';
expect(str).toHaveLength(3);
});
});
frisby.post(URL + '/users/3.json')
.expect('status', 418)
.done(() => {});
2 changes: 0 additions & 2 deletions types/frisby/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.8

/// <reference types='jest'/>

// #region Imports
export import nodeFetch = require('node-fetch'); // Import all definitions from node-fetch.
//#endregion
Expand Down

0 comments on commit d2e8a11

Please sign in to comment.