Skip to content

Commit

Permalink
added quotes around options.global and options.globals
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalpp committed May 30, 2019
1 parent e1a79a6 commit 04f6526
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit/mocha.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ describe('Mocha', function() {
});
});

describe('when options.global is provided', function() {
it('should pass options.global to #globals()', function() {
describe('when "options.global" is provided', function() {
it('should pass "options.global" to #globals()', function() {
// eslint-disable-next-line no-new
new Mocha({global: ['singular']});
expect(Mocha.prototype.globals, 'to have a call satisfying', [
Expand All @@ -80,8 +80,8 @@ describe('Mocha', function() {
});
});

describe('when options.globals is provided', function() {
it('should pass options.globals to #globals()', function() {
describe('when "options.globals" is provided', function() {
it('should pass "options.globals" to #globals()', function() {
// eslint-disable-next-line no-new
new Mocha({globals: ['plural']});
expect(Mocha.prototype.globals, 'to have a call satisfying', [
Expand All @@ -90,8 +90,8 @@ describe('Mocha', function() {
});
});

describe('when options.global AND options.globals are provided', function() {
it('should pass options.global to #globals(), ignoring options.globals', function() {
describe('when "options.global" AND "options.globals" are provided', function() {
it('should pass "options.global" to #globals(), ignoring "options.globals"', function() {
// eslint-disable-next-line no-new
new Mocha({global: ['singular'], globals: ['plural']});
expect(Mocha.prototype.globals, 'to have a call satisfying', [
Expand Down

0 comments on commit 04f6526

Please sign in to comment.