Skip to content

Commit

Permalink
Fix user module unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Dec 29, 2013
1 parent 75a0378 commit 7550786
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ describe('Generator.user', function () {
});

it('is read-only', function () {
this.user.git.username = 'bar';
assert.notEqual(this.user.git.username, 'bar');
assert.throws(function () {
this.user.git.username = 'bar';
});
});

it('cache the value', function () {
Expand All @@ -77,8 +78,9 @@ describe('Generator.user', function () {
});

it('is read-only', function () {
this.user.git.email = 'bar';
assert.notEqual(this.user.git.email, 'bar');
assert.throws(function () {
this.user.git.email = 'bar';
});
});

it('handle cache', function () {
Expand Down

1 comment on commit 7550786

@SBoudrias
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now throws because mode have been passed to "use strict"

Please sign in to comment.