Skip to content

Commit

Permalink
[Tests] add implementation est; run es-shim-api in postlint; use …
Browse files Browse the repository at this point in the history
…`tape` runner
  • Loading branch information
ljharb committed Nov 28, 2020
1 parent 6b76dff commit c9dd792
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
8 changes: 3 additions & 5 deletions package.json
Expand Up @@ -12,16 +12,14 @@
"./implementation": "./implementation.browser.js"
},
"scripts": {
"pretest": "npm run --silent lint && es-shim-api --bound --property",
"pretest": "npm run lint",
"test": "npm run --silent tests-only",
"posttest": "npx aud --production",
"tests-only": "npm run --silent test:implementation && npm run --silent test:shim",
"test:native": "node test/native.js",
"test:shim": "node test/shimmed.js",
"test:implementation": "node test/index.js",
"tests-only": "tape 'test/**/*.js'",
"coverage": "covert test/*.js",
"coverage:quiet": "covert test/*.js --quiet",
"lint": "eslint .",
"postlint": "es-shim-api --bound --property",
"build": "mkdir -p dist && browserify browserShim.js > dist/browser.js",
"prepublish": "npm run --silent build",
"version": "auto-changelog && git add CHANGELOG.md",
Expand Down
11 changes: 11 additions & 0 deletions test/implementation.js
@@ -0,0 +1,11 @@
'use strict';

var implementation = require('../implementation');
var test = require('tape');
var runTests = require('./tests');

test('implementation', function (t) {
runTests(implementation, t);

t.end();
});
3 changes: 1 addition & 2 deletions test/shimmed.js
@@ -1,7 +1,6 @@
'use strict';

var systemGlobal = require('../');
systemGlobal.shim();
require('../auto');

var test = require('tape');
var defineProperties = require('define-properties');
Expand Down

0 comments on commit c9dd792

Please sign in to comment.