mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 13:57:09 +01:00
24 lines
464 B
JavaScript
24 lines
464 B
JavaScript
const assert = require('assert').strict;
|
|
const lib = require('../lib/main')
|
|
|
|
describe('Test 1', () => {
|
|
it('Passing test', () => {
|
|
assert.equal(true, true)
|
|
});
|
|
|
|
describe('Test 1.1', () => {
|
|
it('Failing test', () => {
|
|
assert.equal(false, true)
|
|
});
|
|
|
|
it('Exception in target unit', () => {
|
|
lib.throwError();
|
|
});
|
|
});
|
|
});
|
|
|
|
describe('Test 2', () => {
|
|
it('Exception in test', () => {
|
|
throw new Error('Some error');
|
|
});
|
|
});
|