Skip to content

Commit

Permalink
checkpoint: mocha tests all pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Dec 21, 2015
1 parent fda6489 commit b0ff526
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .babelrc
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
2 changes: 2 additions & 0 deletions client/lib/batch-results.js
@@ -1,3 +1,5 @@
"use strict";

var FixtureLibrary = require('./fixtures/fixture-library');
var Specification = require('./model/specification');
var ResultCache = require('./stores/result-cache');
Expand Down
2 changes: 2 additions & 0 deletions client/lib/fixtures/fixture-library.js
@@ -1,3 +1,5 @@
"use strict";

var Fixture = require('./fixture');
var Comment = require('./../model/comment');
var _ = require('lodash');
Expand Down
2 changes: 2 additions & 0 deletions client/lib/fixtures/fixture.js
@@ -1,3 +1,5 @@
"use strict";

var MissingGrammar = require('./../grammars/missing-grammar');
var Section = require('./../model/section');
var _ = require('lodash');
Expand Down
2 changes: 2 additions & 0 deletions client/lib/grammars/missing-grammar.js
@@ -1,3 +1,5 @@
"use strict";

var Step = require('./../model/step');

class MissingGrammar{
Expand Down
2 changes: 2 additions & 0 deletions client/lib/model/arg-collection.js
@@ -1,3 +1,5 @@
"use strict";

var Arg = require('./arg');
var _ = require('lodash');

Expand Down
2 changes: 2 additions & 0 deletions client/lib/model/arg.js
@@ -1,3 +1,5 @@
"use strict";

var uuid = require('node-uuid');

class Arg{
Expand Down
1 change: 1 addition & 0 deletions client/lib/model/comment.js
@@ -1,3 +1,4 @@
"use strict";

var uuid = require('node-uuid');
var Arg = require('./../model/arg');
Expand Down
2 changes: 2 additions & 0 deletions client/lib/model/section.js
@@ -1,3 +1,5 @@
"use strict";

var uuid = require('node-uuid');
var StepHolder = require('./step-holder');
var _ = require('lodash');
Expand Down
2 changes: 2 additions & 0 deletions client/lib/model/specification.js
@@ -1,3 +1,5 @@
"use strict";

var StepHolder = require('./step-holder');
var _ = require('lodash');
var uuid = require('node-uuid');
Expand Down
1 change: 1 addition & 0 deletions client/lib/model/step.js
@@ -1,3 +1,4 @@
"use strict";

var uuid = require('node-uuid');
var ArgCollection = require('./arg-collection');
Expand Down
2 changes: 2 additions & 0 deletions client/lib/model/suite.js
@@ -1,3 +1,5 @@
"use strict";

var Spec = require('./specification');
var _ = require('lodash');

Expand Down
1 change: 1 addition & 0 deletions client/lib/presentation/adder.js
@@ -1,3 +1,4 @@
"use strict";

class Adder {
constructor(holder, text){
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -12,7 +12,7 @@
"tdd-mocha": "mocha -w -G",
"test": "npm run test-mocha && npm run test-karma && npm run smoke-test",
"test-karma": "karma start --single-run",
"test-mocha": "mocha",
"test-mocha": "mocha --compilers js:babel-core/register",
"build-server": "paket install && node build/buildServer.js"
},
"devDependencies": {
Expand All @@ -23,6 +23,7 @@
"babel-polyfill": "^6.3.14",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-register": "^6.3.13",
"chai": "^3.4.1",
"history": "^1.13.1",
"jquery": "^2.1.4",
Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
@@ -1,5 +1,5 @@
client/lib-tests/**/test-*.js
--compilers js:babel/register
--compilers js:babel-core/register
--recursive
--reporter spec
--bail
Expand Down
7 changes: 7 additions & 0 deletions webpack.config.js
Expand Up @@ -28,6 +28,13 @@ module.exports = {
query: {
presets: ['react', 'es2015']
}
},
{
test: /\.js$/,
loader: 'babel', // 'babel-loader' is also a legal name to reference
query: {
presets: ['es2015']
}
}
]
},
Expand Down

0 comments on commit b0ff526

Please sign in to comment.