Skip to content

Commit

Permalink
test(unit/mocha.spec.js): Change verbage of test titles for #globals
Browse files Browse the repository at this point in the history
  • Loading branch information
plroebuck committed Feb 16, 2019
1 parent bf9939b commit c638cbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/mocha.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ describe('Mocha', function() {
});

describe('when argument is invalid', function() {
it('should not add empty string to the whitelist', function() {
it('should not modify the whitelist when given empty string', function() {
var mocha = new Mocha(opts);
mocha.globals('');
expect(mocha.options.globals, 'to be empty');
});

it('should not add empty array to the whitelist', function() {
it('should not modify the whitelist when given empty array', function() {
var mocha = new Mocha(opts);
mocha.globals([]);
expect(mocha.options.globals, 'to be empty');
Expand All @@ -142,7 +142,7 @@ describe('Mocha', function() {
expect(mocha.options.globals, 'to have length', 1);
});

it('should add string array to the whitelist', function() {
it('should add contents of string array to the whitelist', function() {
var mocha = new Mocha(opts);
var elems = [elem, elem2];
mocha.globals(elems);
Expand Down

0 comments on commit c638cbe

Please sign in to comment.