Skip to content

Commit

Permalink
test(table): remove sinon fake timers hack now that v9 is available #655
Browse files Browse the repository at this point in the history
  • Loading branch information
zamnuts committed Apr 12, 2020
1 parent d7b4103 commit 184764c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/table.ts
Expand Up @@ -2025,18 +2025,12 @@ describe('BigQuery/Table', () => {
schema: SCHEMA_STRING,
};

// HACK @types/sinon is missing the timer async methods
interface SinonFakeTimersShim extends sinon.SinonFakeTimers {
runAllAsync(): Promise<number>;
tickAsync(ms: number | string): Promise<number>;
}

let clock: SinonFakeTimersShim;
let clock: sinon.SinonFakeTimers;
let insertSpy: sinon.SinonSpy;
let requestStub: sinon.SinonStub;

before(() => {
clock = sinon.useFakeTimers() as SinonFakeTimersShim;
clock = sinon.useFakeTimers() as sinon.SinonFakeTimers;
});

beforeEach(() => {
Expand Down

0 comments on commit 184764c

Please sign in to comment.