Skip to content

Commit

Permalink
chore: Apply latest generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Owsiak committed Jan 4, 2018
1 parent 45c66f7 commit 8a01540
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "groupon"
"extends": "groupon/node4"
}
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
language: node_js
node_js:
- '4'
- '6'
- '8'
- 4.6.1
- 6.11.5
- 8.9.0
deploy:
provider: script
script: ./node_modules/.bin/nlm release
skip_cleanup: true
'on':
branch: master
node: '8'
- provider: script
script: ./node_modules/.bin/nlm release
skip_cleanup: true
'on':
branch: master
node: 8.9.0
2 changes: 1 addition & 1 deletion lib/assertive.js.map

Large diffs are not rendered by default.

41 changes: 0 additions & 41 deletions lib/diff-stub.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/diff-stub.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions src/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "groupon/node8"
}
8 changes: 2 additions & 6 deletions src/assertive.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ function handleArgs(self, count, args, name, help) {
if (_.isArray(count) && count.indexOf(argc) !== -1) {
const n = count[count.length - 1];
if (argc !== n || _.isString(args[0])) return [name, negated];
max = `,\nand when called with ${
n
} args, the first arg must be a docstring`;
max = `,\nand when called with ${n} args, the first arg must be a docstring`;
}

let wantedArgCount;
Expand Down Expand Up @@ -496,9 +494,7 @@ ${name} ${red(stringify(haystack))}, ${needle}`);
if ((!typeMatches && !negated) || (typeMatches && negated)) {
value = red(stringify(value));
const toBeOrNotToBe = `${negated ? 'not ' : ''}to be`;
const message = `Expected value ${value} ${toBeOrNotToBe} of type ${
stringType
}`;
const message = `Expected value ${value} ${toBeOrNotToBe} of type ${stringType}`;
throw error(message, explanation);
}
},
Expand Down

0 comments on commit 8a01540

Please sign in to comment.