Skip to content

Commit

Permalink
run test/bench on the original source (without build step)
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Aug 8, 2018
1 parent e3bcdee commit b838838
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bench.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import TinyQueue from './';
import TinyQueue from './index.js';

const N = 1000000;

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"unpkg": "tinyqueue.min.js",
"scripts": {
"lint": "eslint index.js test.js bench.js rollup.config.js",
"pretest": "npm run lint && npm run build",
"test": "tape test.js",
"pretest": "npm run lint",
"test": "tape -r esm test.js",
"bench": "node -r esm bench.js",
"build": "rollup -c",
"watch": "rollup -cw",
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

const test = require('tape').test;
const TinyQueue = require('./');
import {test} from 'tape';
import TinyQueue from './index.js';

const data = [];
for (let i = 0; i < 100; i++) {
Expand Down

0 comments on commit b838838

Please sign in to comment.