Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(addtest): adds unit test configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dgutride authored and joshuawilson committed Mar 30, 2017
1 parent 16f0e20 commit 6afcbb8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
3 changes: 1 addition & 2 deletions config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = function(config) {
* we are building the test environment in ./spec-bundle.js
*/
files: [
{ pattern: './src/assets/img/*', watched: false, included: false, served: true },
{ pattern: './config/spec-bundle.js', watched: false }
],

Expand Down Expand Up @@ -102,7 +101,7 @@ module.exports = function(config) {
},
},
flags: ['--load-images=true'],
debug: true
debug: false
}
},
phantomjsLauncher: {
Expand Down
4 changes: 0 additions & 4 deletions config/webpack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ const FABRIC8_RECOMMENDER_API_URL = process.env.FABRIC8_RECOMMENDER_API_URL || '
module.exports = function (options) {
return {

entry: {
'app': './index.ts'
},

/**
* Source map for Karma from the help of karma-sourcemap-loader & karma-webpack
*
Expand Down
2 changes: 2 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Look in ./config for karma.conf.js
module.exports = require('./config/karma.conf.js');
5 changes: 5 additions & 0 deletions src/app/auth/authentication.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe('Authentication service', () => {
it ('authentication service test', function () {
expect(1).toBe(1);
});
});
5 changes: 5 additions & 0 deletions src/app/user/user.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe('User service', () => {
it ('user service test', function () {
expect(1).toBe(1);
});
});

0 comments on commit 6afcbb8

Please sign in to comment.