forked from linnovate/mean
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated karma.conf.js to working with webpack added example of test ro meanStarter package
- Loading branch information
pavel
committed
May 6, 2016
1 parent
8d1f97e
commit 5d40b6c
Showing
6 changed files
with
66 additions
and
88 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
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
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,12 @@ | ||
describe('StarterController', function() { | ||
var controller, scope; | ||
beforeEach(module('mean.meanStarter')); | ||
beforeEach(inject(function($controller, $rootScope){ | ||
scope = $rootScope.$new(); | ||
controller = $controller('StarterController', { $scope: scope }); | ||
})); | ||
|
||
it('package object in scope should contain proper package name', function() { | ||
expect(scope.package.name).toEqual('meanStarter'); | ||
}); | ||
}); |
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,21 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
module: { | ||
loaders: [ | ||
{test: /\.css$/, loader: 'style-loader!css-loader'}, | ||
{ | ||
test: /\.js$/, | ||
exclude: /(node_modules|bower_components|lib)/, | ||
loader: 'babel?presets[]=es2015&presets[]=stage-1' | ||
}, | ||
{ | ||
test: /(.*)\.(eot|svg|ttf|woff|woff2)$/, | ||
loader: 'url-loader' | ||
} | ||
] | ||
}, | ||
resolve: { | ||
modulesDirectories: ['bower_components', 'node_modules'] | ||
} | ||
}; |