Skip to content

Commit c938820

Browse files
committed
clean up
1 parent e8515c7 commit c938820

File tree

6 files changed

+7
-15
lines changed

6 files changed

+7
-15
lines changed

spec/AccountLockoutPolicy.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ describe('Account Lockout Policy: ', () => {
4343
afterAll(async () => {
4444
await reconfigureServer();
4545
});
46-
4746
it('account should not be locked even after failed login attempts if account lockout policy is not set', done => {
4847
reconfigureServer({
4948
appName: 'unlimited',

spec/Analytics.spec.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ const analyticsAdapter = {
44
};
55

66
describe('AnalyticsController', () => {
7-
afterAll(async () => {
8-
await reconfigureServer();
9-
});
10-
117
it('should track a simple event', done => {
128
spyOn(analyticsAdapter, 'trackEvent').and.callThrough();
139
reconfigureServer({
@@ -20,7 +16,7 @@ describe('AnalyticsController', () => {
2016
});
2117
})
2218
.then(
23-
async () => {
19+
() => {
2420
expect(analyticsAdapter.trackEvent).toHaveBeenCalled();
2521
const lastCall = analyticsAdapter.trackEvent.calls.first();
2622
const args = lastCall.args;

spec/AuthenticationAdapters.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ describe('AuthenticationProviders', function () {
187187
});
188188
};
189189

190-
it('should create user with REST API', async done => {
190+
it('should create user with REST API', done => {
191191
createOAuthUser((error, response, body) => {
192192
expect(error).toBe(null);
193193
const b = body;
@@ -214,7 +214,7 @@ describe('AuthenticationProviders', function () {
214214
});
215215
});
216216

217-
it('should only create a single user with REST API', async done => {
217+
it('should only create a single user with REST API', done => {
218218
let objectId;
219219
createOAuthUser((error, response, body) => {
220220
expect(error).toBe(null);
@@ -234,7 +234,7 @@ describe('AuthenticationProviders', function () {
234234
});
235235
});
236236

237-
it("should fail to link if session token don't match user", async done => {
237+
it("should fail to link if session token don't match user", done => {
238238
Parse.User.signUp('myUser', 'password')
239239
.then(user => {
240240
return createOAuthUserWithSessionToken(user.getSessionToken());

spec/Parse.Push.spec.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ const delayPromise = delay => {
99
};
1010

1111
describe('Parse.Push', () => {
12-
afterAll(async () => {
13-
await reconfigureServer();
14-
});
15-
1612
const setup = function () {
1713
const sendToInstallationSpy = jasmine.createSpy();
1814

spec/ParseAPI.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ describe('miscellaneous', function () {
6868

6969
it('fail to create a duplicate username', async () => {
7070
await reconfigureServer();
71-
7271
let numFailed = 0;
7372
let numCreated = 0;
7473
const p1 = request({
@@ -117,7 +116,6 @@ describe('miscellaneous', function () {
117116

118117
it('ensure that email is uniquely indexed', async () => {
119118
await reconfigureServer();
120-
121119
let numFailed = 0;
122120
let numCreated = 0;
123121
const p1 = request({

spec/PublicAPI.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const request = function (url, callback) {
1010
};
1111

1212
describe('public API', () => {
13+
afterAll(async () => {
14+
await reconfigureServer();
15+
});
1316
it('should return missing username error on ajax request without username provided', async () => {
1417
await reconfigureServer({
1518
publicServerURL: 'http://localhost:8378/1',

0 commit comments

Comments
 (0)