Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchiheather committed Dec 27, 2018
1 parent de46662 commit 15655ca
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/integration/hook-err.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
var runMocha = require('./helpers').runMocha;
var splitRegExp = require('./helpers').splitRegExp;
var bang = require('../../lib/reporters/base').symbols.bang;
var assert = require('assert');

describe('hook error handling', function() {
var lines;
Expand All @@ -17,25 +16,26 @@ describe('hook error handling', function() {

describe('before hook error tip', function() {
before(run('hooks/before-hook-error-tip.fixture.js', onlyErrorTitle()));
it('should verify results', function () {
assert.deepEqual(
lines,
['1) spec 2', '"before all" hook for "skipped":']
);
it('should verify results', function() {
expect(lines, 'to equal', [
'1) spec 2',
'"before all" hook for "skipped":'
]);
});
});

describe('nested before hook error', function () {
describe('nested before hook error', function() {
before(run('hooks/before-nested-hook-error.fixture.js', onlyErrorTitle()));
it('should verify results', function () {
assert.deepEqual(
lines,
['1) spec 1', 'nested 1', '"before all" hook for "blames me":']
);
it('should verify results', function() {
expect(lines, 'to equal', [
'1) spec 1',
'nested 1',
'"before all" hook for "blames me":'
]);
});
});

describe('before each hook error', function () {
describe('before each hook error', function() {
before(run('hooks/beforeEach-hook-error.fixture.js'));
it('should verify results', function() {
expect(lines, 'to equal', ['before', bang + 'test 3']);
Expand All @@ -52,7 +52,7 @@ describe('hook error handling', function() {
describe('nested after hook error', function() {
before(run('hooks/after-nested-hook-error.fixture.js', onlyErrorTitle()));
it('should verify results', function() {
assert.deepEqual(lines, [
expect(lines, 'to equal', [
'1) spec 1',
'nested 1',
'"after all" hook for "blames me":'
Expand Down

0 comments on commit 15655ca

Please sign in to comment.