Skip to content

Commit

Permalink
added some unit test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
abbr committed Dec 24, 2013
1 parent e892d91 commit 6ead7e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ module.exports = function(config) {
'app/bower_components/angular-cookies/angular-cookies.js',
'app/bower_components/angular-sanitize/angular-sanitize.js',
'app/bower_components/angular-route/angular-route.js',
'app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'app/bower_components/angular-ui-utils/modules/validate/validate.js',
'app/scripts/*.js',
'app/scripts/**/*.js',
'test/mock/**/*.js',
Expand Down
10 changes: 8 additions & 2 deletions test/spec/services/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ describe('Service: Users', function() {
// load the service's module
beforeEach(module('formMailerServiceApp'));

it('should do something', function() {
expect(true).toBe(true);
// instantiate service
var Users;
beforeEach(inject(function(_Users_) {
Users = _Users_;
}));

it('should be resource ', function() {
expect(Users.name).toBe('Resource');
});

});

0 comments on commit 6ead7e6

Please sign in to comment.