Skip to content

Commit

Permalink
add extensive test command
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Mar 9, 2019
1 parent 9e42472 commit 788ccb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as string from './string.js'

// @ts-ignore
export const isNode = typeof process !== 'undefined' && /node|io\.js/.test(process.release.name)
export const isBrowser = typeof window !== undefined && !isNode
export const isBrowser = typeof window !== 'undefined' && !isNode

/**
* @type {Map<string,string>}
Expand Down Expand Up @@ -40,6 +40,7 @@ const computeParamsNode = () => {
const computeParamsBrowser = () => {
if (params === undefined) {
params = map.create()
// eslint-disable-next-line no-undef
;(location.search || '?').slice(1).split('&').forEach(kv => {
if (kv.length !== 0) {
const [key, value] = kv.split('=')
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dist": "rollup -c",
"debug": "live-server --port=3443 --entry-file=test.html",
"test": "npm run dist && node ./dist/test.js",
"test-extensive": "npm run test -- --repitition-time 30000",
"trace-deopt": "clear && rollup -c && node --trace-deopt dist/test.js",
"trace-opt": "clear && rollup -c && node --trace-opt dist/test.js"
},
Expand Down

0 comments on commit 788ccb5

Please sign in to comment.