-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating / fixing bugs / adding tests.
- Loading branch information
John Vilk
committed
Nov 5, 2016
1 parent
73c9481
commit 218877d
Showing
88 changed files
with
4,876 additions
and
7,427 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
] | ||
} | ||
} |
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 @@ | ||
*.zip filter=lfs diff=lfs merge=lfs -text |
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
/src/*.js | ||
^/src/macros.js | ||
/node_modules | ||
.vscode | ||
/dist |
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,3 @@ | ||
/build | ||
/test | ||
.vscode |
This file was deleted.
Oops, something went wrong.
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
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,49 @@ | ||
'use strict'; | ||
const detectBrowsers = require('detect-browsers'); | ||
const seenBrowsers = {}; | ||
const isTravis = process.env.TRAVIS; | ||
// Browser detection does not work properly on Travis. | ||
const installedBrowsers = isTravis ? ['Firefox'] : detectBrowsers.getInstalledBrowsers() | ||
.map(function(browser) { return browser.name; }) | ||
.filter(function(browser) { | ||
if (seenBrowsers[browser]) { | ||
return false; | ||
} else { | ||
seenBrowsers[browser] = true; | ||
return true; | ||
} | ||
}); | ||
|
||
module.exports = function(configSetter) { | ||
configSetter.set({ | ||
basePath: __dirname, | ||
frameworks: ['mocha'], | ||
files: [ | ||
{pattern: 'test/fixtures/**/*', included: false}, | ||
'node_modules/browserfs/dist/browserfs.js', | ||
'dist/browserfs-zipfs-extras.js', | ||
'node_modules/js-crc/build/crc.min.js', | ||
'build/test/index.js' | ||
], | ||
exclude: [], | ||
reporters: ['progress'], | ||
port: 9876, | ||
colors: true, | ||
logLevel: 'INFO', | ||
autoWatch: true, | ||
concurrency: 1, | ||
browsers: installedBrowsers, | ||
captureTimeout: 60000, | ||
singleRun: false, | ||
urlRoot: '/', | ||
browserNoActivityTimeout: 30000, | ||
browserDisconnectTimeout: 10000, | ||
browserDisconnectTolerance: 3, | ||
client: { | ||
mocha: { | ||
// Stop tests after first failure. | ||
bail: true | ||
} | ||
} | ||
}); | ||
}; |
Oops, something went wrong.