Skip to content

Commit 5716660

Browse files
committed
fix(server:user:spec): replace context with describe
Jasmine doesn't have `context()`
1 parent 7286fee commit 5716660

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: app/templates/server/api/user(auth)/user.model.spec(mongooseModels).js

+9-9
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('User Model', function() {
5656
return <%= expect() %>user.save()<%= to() %>.be.rejected;
5757
});<% if (filters.oauth && filters.googleAuth) { %>
5858

59-
context('given user provider is google', function() {
59+
describe('given user provider is google', function() {
6060
beforeEach(function() {
6161
user.provider = 'google';
6262
});
@@ -67,7 +67,7 @@ describe('User Model', function() {
6767
});
6868
});<% } %><% if (filters.oauth && filters.facebookAuth) { %>
6969

70-
context('given user provider is facebook', function() {
70+
describe('given user provider is facebook', function() {
7171
beforeEach(function() {
7272
user.provider = 'facebook';
7373
});
@@ -78,7 +78,7 @@ describe('User Model', function() {
7878
});
7979
});<% } %><% if (filters.oauth && filters.twitterAuth) { %>
8080

81-
context('given user provider is twitter', function() {
81+
describe('given user provider is twitter', function() {
8282
beforeEach(function() {
8383
user.provider = 'twitter';
8484
});
@@ -89,7 +89,7 @@ describe('User Model', function() {
8989
});
9090
});<% } %><% if (filters.oauth) { %>
9191

92-
context('given user provider is github', function() {
92+
describe('given user provider is github', function() {
9393
beforeEach(function() {
9494
user.provider = 'github';
9595
});
@@ -117,7 +117,7 @@ describe('User Model', function() {
117117
return <%= expect() %>user.save()<%= to() %>.be.rejected;
118118
});
119119

120-
context('given the user has been previously saved', function() {
120+
describe('given the user has been previously saved', function() {
121121
beforeEach(function() {
122122
return user.save();
123123
});
@@ -139,7 +139,7 @@ describe('User Model', function() {
139139
});
140140
});<% if (filters.oauth && filters.googleAuth) { %>
141141

142-
context('given user provider is google', function() {
142+
describe('given user provider is google', function() {
143143
beforeEach(function() {
144144
user.provider = 'google';
145145
});
@@ -150,7 +150,7 @@ describe('User Model', function() {
150150
});
151151
});<% } %><% if (filters.oauth && filters.facebookAuth) { %>
152152

153-
context('given user provider is facebook', function() {
153+
describe('given user provider is facebook', function() {
154154
beforeEach(function() {
155155
user.provider = 'facebook';
156156
});
@@ -161,7 +161,7 @@ describe('User Model', function() {
161161
});
162162
});<% } %><% if (filters.oauth && filters.twitterAuth) { %>
163163

164-
context('given user provider is twitter', function() {
164+
describe('given user provider is twitter', function() {
165165
beforeEach(function() {
166166
user.provider = 'twitter';
167167
});
@@ -172,7 +172,7 @@ describe('User Model', function() {
172172
});
173173
});<% } %><% if (filters.oauth) { %>
174174

175-
context('given user provider is github', function() {
175+
describe('given user provider is github', function() {
176176
beforeEach(function() {
177177
user.provider = 'github';
178178
});

0 commit comments

Comments
 (0)