Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmisty committed Jul 18, 2023
1 parent 8b42ff8 commit 3404100
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/tests/unit/parse-allure-console.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { parseAllure } from '../../parser/parse';
import * as path from 'path';

describe('unit', () => {
it('parseAllure - should be log when debug is on', () => {
process.env.DEBUG = 'allure-js-parser:parse';

const c = jest.spyOn(console, 'log');
c.mockImplementation(() => {
// nothing
});

parseAllure(path.resolve(`${process.cwd()}/src/tests/allure-data/simple`));
expect(c.mock.calls).toEqual([]);
});
});

0 comments on commit 3404100

Please sign in to comment.