Skip to content

Commit

Permalink
Update deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrsjng committed Jul 21, 2016
1 parent 2008d07 commit 9b88cde
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -12,7 +12,7 @@ insert_final_newline = true
trim_trailing_whitespace = true


[{package.json,.travis.yml,.eslintrc,.babelrc}]
[{package.json,.travis.yml,.eslintrc}]
indent_size = 2


Expand Down
10 changes: 5 additions & 5 deletions ghu.js
Expand Up @@ -122,17 +122,17 @@ ghu.task('build:tests', ['build:styles'], 'build the test suite', () => {
.then(newerThan(`${BUILD}/test/h5ai-styles.css`))
.then(write(`${BUILD}/test/h5ai-styles.css`, {overwrite: true})),

read(`${TEST}/tests.html`)
.then(newerThan(`${BUILD}/test/tests.html`))
.then(write(`${BUILD}/test/tests.html`, {overwrite: true})),
read(`${TEST}/index.html`)
.then(newerThan(`${BUILD}/test/index.html`))
.then(write(`${BUILD}/test/index.html`, {overwrite: true})),

read(`${TEST}: tests.js`)
read(`${TEST}: index.js`)
.then(webpack(webpackCfg([SRC, TEST]), {showStats: false}))
.then(wrap(`\n\n// @include "${SRC}/**/js/pre.js"\n\n`))
.then(includeit())
.then(write(mapfn.p(TEST, `${BUILD}/test`), {overwrite: true}))
]).then(() => {
console.log(`browse to file://${BUILD}/test/tests.html to run the test suite`);
console.log(`browse to file://${BUILD}/test/index.html to run the test suite`);
});
});

Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -16,9 +16,9 @@
"devDependencies": {
"babel-loader": "6.2.4",
"babel-preset-es2015": "6.9.0",
"eslint": "3.0.1",
"eslint": "3.1.1",
"ghu": "0.7.0",
"scar": "0.13.0"
"scar": "0.14.0"
},
"engines": {
"node": ">=6.0.0"
Expand Down
4 changes: 1 addition & 3 deletions src/_h5ai/public/js/pre.js
Expand Up @@ -27,6 +27,4 @@
/* eslint-enable */


// @include "vendor/kjua*.js"
// @include "vendor/marked*.js"
// @include "vendor/prism*.js"
// @include "vendor/*.js"
2 changes: 1 addition & 1 deletion test/tests.html → test/index.html
Expand Up @@ -6,6 +6,6 @@
<link rel="stylesheet" href="h5ai-styles.css">
</head>
<body>
<script src="tests.js"></script>
<script src="index.js"></script>
</body>
</html>
File renamed without changes.
8 changes: 2 additions & 6 deletions test/tests/premisses.js
@@ -1,10 +1,6 @@
const {test, assert} = require('scar');

test('window is global object', () => {
assert.equal(typeof global, 'object');
assert.equal(global, global.window);
});

test('document is global object', () => {
assert.equal(typeof global.document, 'object');
assert.ok(global.window);
assert.equal(global.window, global.window.window);
});

0 comments on commit 9b88cde

Please sign in to comment.