Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
test(issue-306): added a test for issue 306
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Yates committed Sep 18, 2016
1 parent 3e94717 commit 6b1f1ba
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/bugs/issue306.spec.js
@@ -0,0 +1,22 @@
import postscribe from '../../src/postscribe';
import * as wc from '../helpers/write-comparor';

describe.only('bugs', () => {
describe('issue 306: Null pointer error fired on aborting postscribe execution', () => {
it('does something', done => {
wc
.compare('something')
.then(r => expect(r).to.be.ok())
.fail(done)
.always(() => {
postscribe(null, null, 'clear');

wc
.compare('something again')
.then(r => expect(r).to.be.ok())
.fail(done)
.always(done);
});
});
});
});

0 comments on commit 6b1f1ba

Please sign in to comment.