Skip to content
This repository was archived by the owner on Jan 6, 2020. It is now read-only.

Commit e0085b8

Browse files
authored
Remove package lock, drop Node.js 11, add 12, bump dependencies
1 parent 736569d commit e0085b8

File tree

6 files changed

+18
-10967
lines changed

6 files changed

+18
-10967
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,9 @@
11
language: node_js
2+
os:
3+
- linux
24
node_js:
3-
- '10'
4-
- '8'
5-
- '6'
6-
env:
7-
- FRESH_DEPS=false
8-
- FRESH_DEPS=true
9-
matrix:
10-
exclude:
11-
- node_js: '8'
12-
env: FRESH_DEPS=true
13-
- node_js: '6'
14-
env: FRESH_DEPS=true
15-
cache:
16-
directories:
17-
- $HOME/.npm
18-
before_install:
19-
- npm install --global [email protected]
20-
- npm --version
21-
install: |
22-
if [[ ${FRESH_DEPS} == "true" ]]; then
23-
npm install --no-shrinkwrap --prefer-online;
24-
else
25-
npm ci;
26-
checksum=$(md5sum package-lock.json);
27-
npm install --package-lock-only;
28-
if ! echo ${checksum} | md5sum --quiet -c -; then
29-
echo "package-lock.json was modified unexpectedly. Please rebuild it using npm@$(npm -v) and commit the changes.";
30-
exit 1;
31-
fi
32-
fi
33-
after_success: npx codecov --file=coverage/lcov.info
5+
- 12
6+
- 10
7+
- 8
8+
cache: npm
9+
after_success: npx codecov --file=./coverage/lcov.info

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ function END(t, arg) {
3636

3737
// Wrap the argument expression, so that the stack trace of the assertion
3838
// isn't affected.
39-
path.node.arguments[0] = wrapArg(Object.assign({
39+
path.node.arguments[0] = wrapArg({
4040
ARG: arg0,
4141
ASSERTION: t.stringLiteral(assertion),
4242
FILE: t.stringLiteral(state.file.opts.filename),
43-
LINE: t.numericLiteral(arg0.loc.start.line)
44-
}, this.installHelper())).expression;
43+
LINE: t.numericLiteral(arg0.loc.start.line),
44+
...this.installHelper()
45+
}).expression;
4546
}
4647
};
4748

0 commit comments

Comments
 (0)