Skip to content

Commit d06201d

Browse files
committed
Removed empty lines as requested.
1 parent cc55fed commit d06201d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

spec/DatabaseController.spec.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ describe('DatabaseController', function () {
239239
it('should not return a $or operation if the query involves one of the two fields also used as array/pointer permissions', done => {
240240
const clp = buildCLP(['users', 'user']);
241241
const query = { a: 'b', user: createUserPointer(USER_ID) };
242-
243242
schemaController.testPermissionsForClassName
244243
.withArgs(CLASS_NAME, ACL_GROUP, OPERATION)
245244
.and.returnValue(false);
@@ -250,24 +249,20 @@ describe('DatabaseController', function () {
250249
schemaController.getExpectedType
251250
.withArgs(CLASS_NAME, 'users')
252251
.and.returnValue({ type: 'Array' });
253-
254252
const output = databaseController.addPointerPermissions(
255253
schemaController,
256254
CLASS_NAME,
257255
OPERATION,
258256
query,
259257
ACL_GROUP
260258
);
261-
262259
expect(output).toEqual({ ...query, user: createUserPointer(USER_ID) });
263-
264260
done();
265261
});
266262

267263
it('should not return a $or operation if the query involves one of the fields also used as array/pointer permissions', done => {
268264
const clp = buildCLP(['user', 'users', 'userObject']);
269265
const query = { a: 'b', user: createUserPointer(USER_ID) };
270-
271266
schemaController.testPermissionsForClassName
272267
.withArgs(CLASS_NAME, ACL_GROUP, OPERATION)
273268
.and.returnValue(false);
@@ -281,17 +276,14 @@ describe('DatabaseController', function () {
281276
schemaController.getExpectedType
282277
.withArgs(CLASS_NAME, 'userObject')
283278
.and.returnValue({ type: 'Object' });
284-
285279
const output = databaseController.addPointerPermissions(
286280
schemaController,
287281
CLASS_NAME,
288282
OPERATION,
289283
query,
290284
ACL_GROUP
291285
);
292-
293286
expect(output).toEqual({ ...query, user: createUserPointer(USER_ID) });
294-
295287
done();
296288
});
297289

0 commit comments

Comments
 (0)