Skip to content

Commit

Permalink
fix(test): Fix sinon spy
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Kucherenko committed Aug 18, 2018
1 parent 6087a0d commit e610f88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import test, { ExecutionContext } from 'ava';
import { readFileSync } from 'fs';
// import { normalize } from 'path';
import { spy } from 'sinon';
import { JSCPD } from '..';
import { IClone } from '../interfaces/clone.interface';
import { getDefaultOptions } from '../utils/options';

const sinon = require('sinon');

// const path: string = normalize(__dirname + '/../../tests/fixtures/');

let log: any;

test.beforeEach(() => {
log = console.log;
console.log = spy();
console.log = sinon.spy();
});

test.afterEach(() => {
Expand Down

0 comments on commit e610f88

Please sign in to comment.