-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e23a5c
commit fdd1962
Showing
6 changed files
with
44 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
{ | ||
"name": "globals", | ||
"version": "10.4.0", | ||
"description": "Global identifiers from different JavaScript environments", | ||
"license": "MIT", | ||
"repository": "sindresorhus/globals", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"globals.json" | ||
], | ||
"keywords": [ | ||
"globals", | ||
"global", | ||
"identifiers", | ||
"variables", | ||
"vars", | ||
"jshint", | ||
"eslint", | ||
"environments" | ||
], | ||
"devDependencies": { | ||
"mocha": "^3.4.2" | ||
} | ||
"name": "globals", | ||
"version": "10.4.0", | ||
"description": "Global identifiers from different JavaScript environments", | ||
"license": "MIT", | ||
"repository": "sindresorhus/globals", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"globals.json" | ||
], | ||
"keywords": [ | ||
"globals", | ||
"global", | ||
"identifiers", | ||
"variables", | ||
"vars", | ||
"jshint", | ||
"eslint", | ||
"environments" | ||
], | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
'use strict'; | ||
const assert = require('assert'); | ||
const globals = require('.'); | ||
import test from 'ava'; | ||
import m from '.'; | ||
|
||
it('should return an object of globals', () => { | ||
assert.strictEqual(typeof globals, 'object'); | ||
assert(Object.keys(globals).length > 10 && Object.keys(globals).length < 1000); | ||
test(t => { | ||
t.is(typeof m, 'object'); | ||
t.true(Object.keys(m).length > 10 && Object.keys(m).length < 1000); | ||
}); |