Skip to content

Commit 8a5cf76

Browse files
committed
Place test next to source file
1 parent fd699c3 commit 8a5cf76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"scripts": {
1919
"prepublishOnly": "npm test",
2020
"prepack": "npm run build",
21-
"test": "nyc ava tests/*.js",
21+
"test": "nyc ava **/*.test.js",
2222
"build": "npm run build:esm && npm run build:cjs",
2323
"build:esm": "tsc --module es2015 --outDir dist/esm && npm run rename-to-mjs",
2424
"build:cjs": "tsc --module commonjs --outDir dist/cjs",

tests/tests.js renamed to src/get-reverse-iterating-array.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import getReverseIteratingArray from '../src/get-reverse-iterating-array';
2+
import getReverseIteratingArray from './get-reverse-iterating-array';
33

44
test('accepts an empty array as a parameter', t => {
55
const reverseIteratingArray = getReverseIteratingArray([]);

0 commit comments

Comments
 (0)