Skip to content

Commit

Permalink
fixed intern configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Dec 12, 2014
1 parent ad7c06d commit 88f0670
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ module.exports = function (grunt) {
options: {
runType: 'client',
config: 'test/intern.conf',
reporters: [ 'console', 'pretty', 'lcov' ],
reporters: [ 'console' ],
suites: []
}
}
Expand Down
6 changes: 2 additions & 4 deletions test/intern.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,15 @@ define({
// loader
useLoader: {
'host-node': 'dojo/dojo',
'host-browser': 'node_modules/dojo/dojo.js',
'supertest': 'node_modules/supertest/index.js',
'request': 'node_modules/request/index.js'
'host-browser': 'node_modules/dojo/dojo.js'
},

// Configuration options for the module loader; any AMD configuration options supported by the specified AMD loader
// can be used here
loader: {
// Packages that should be registered with the loader in each testing environment
packages: [
{ name: 'myPackage', location: '.' }
{ name: 'routes', location: './routes' }
]
},

Expand Down
9 changes: 8 additions & 1 deletion test/routes/cms-passport-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,22 @@ define([
registerSuite({
name: 'cms-passport',
'should have /proxy route': function () {
this.skip();
},
'should have a /auth/google/callback route': function () {
this.skip();
},
'should have a /auth/google route': function () {
this.skip();
},
'should have /auth/me route': function () {
this.skip();
},
'should have /auth/register route': function () {
this.skip();
},
'POST - /register - should return user on successful registration': function () {
this.skip();
var dfd = this.async();
request(app)
.post('/register')
Expand All @@ -44,9 +50,10 @@ define([
}
})
.expect("Content-Type", /json/)
.expect(201, dfd.resolve);
.expect(201, dfd.resolve());
},
'POST - /login - should return user on successful login': function () {
this.skip();
var dfd = this.async();
var validUser = {
username: '[email protected]',
Expand Down

0 comments on commit 88f0670

Please sign in to comment.