Skip to content

Commit 88a50d0

Browse files
author
Shiranuit
committed
lint test
1 parent 3579142 commit 88a50d0

File tree

5 files changed

+37
-47
lines changed

5 files changed

+37
-47
lines changed

test/core/searchResult/document.test.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -332,17 +332,15 @@ describe("DocumentSearchResult", () => {
332332
return searchResult.next().then((nextSearchResult) => {
333333
should(kuzzle.query)
334334
.be.calledOnce()
335-
.be.calledWith(
336-
{
337-
index: "index",
338-
collection: "collection",
339-
body: { query: { foo: "bar" } },
340-
controller: "document",
341-
action: "search",
342-
size: 2,
343-
from: 2,
344-
},
345-
);
335+
.be.calledWith({
336+
index: "index",
337+
collection: "collection",
338+
body: { query: { foo: "bar" } },
339+
controller: "document",
340+
action: "search",
341+
size: 2,
342+
from: 2,
343+
});
346344
should(nextSearchResult).not.be.equal(searchResult);
347345
should(nextSearchResult).be.instanceOf(DocumentSearchResult);
348346
});

test/core/searchResult/profile.test.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -352,15 +352,13 @@ describe("ProfileSearchResult", () => {
352352
return searchResult.next().then((nextSearchResult) => {
353353
should(kuzzle.query)
354354
.be.calledOnce()
355-
.be.calledWith(
356-
{
357-
body: { query: { foo: "bar" } },
358-
controller: "security",
359-
action: "searchProfiles",
360-
size: 2,
361-
from: 2,
362-
}
363-
);
355+
.be.calledWith({
356+
body: { query: { foo: "bar" } },
357+
controller: "security",
358+
action: "searchProfiles",
359+
size: 2,
360+
from: 2,
361+
});
364362
should(nextSearchResult).not.be.equal(searchResult);
365363
should(nextSearchResult).be.instanceOf(ProfileSearchResult);
366364
});

test/core/searchResult/role.test.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,13 @@ describe("RoleSearchResult", () => {
160160
return searchResult.next().then((nextSearchResult) => {
161161
should(kuzzle.query)
162162
.be.calledOnce()
163-
.be.calledWith(
164-
{
165-
body: { foo: "bar" },
166-
controller: "security",
167-
action: "searchRoles",
168-
size: 2,
169-
from: 2,
170-
}
171-
);
163+
.be.calledWith({
164+
body: { foo: "bar" },
165+
controller: "security",
166+
action: "searchRoles",
167+
size: 2,
168+
from: 2,
169+
});
172170
should(nextSearchResult).not.be.equal(searchResult);
173171
should(nextSearchResult).be.instanceOf(RoleSearchResult);
174172
});

test/core/searchResult/specifications.test.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -331,15 +331,13 @@ describe("SpecificationsSearchResult", () => {
331331
return searchResult.next().then((nextSearchResult) => {
332332
should(kuzzle.query)
333333
.be.calledOnce()
334-
.be.calledWith(
335-
{
336-
body: { query: { foo: "bar" } },
337-
controller: "collection",
338-
action: "searchSpecifications",
339-
size: 2,
340-
from: 2,
341-
}
342-
);
334+
.be.calledWith({
335+
body: { query: { foo: "bar" } },
336+
controller: "collection",
337+
action: "searchSpecifications",
338+
size: 2,
339+
from: 2,
340+
});
343341
should(nextSearchResult).not.be.equal(searchResult);
344342
should(nextSearchResult).be.instanceOf(SpecificationsSearchResult);
345343
});

test/core/searchResult/user.test.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -392,15 +392,13 @@ describe("UserSearchResult", () => {
392392
return searchResult.next().then((nextSearchResult) => {
393393
should(kuzzle.query)
394394
.be.calledOnce()
395-
.be.calledWith(
396-
{
397-
body: { query: { foo: "bar" } },
398-
controller: "security",
399-
action: "searchUsers",
400-
size: 2,
401-
from: 2,
402-
}
403-
);
395+
.be.calledWith({
396+
body: { query: { foo: "bar" } },
397+
controller: "security",
398+
action: "searchUsers",
399+
size: 2,
400+
from: 2,
401+
});
404402
should(nextSearchResult).not.be.equal(searchResult);
405403
should(nextSearchResult).be.instanceOf(UserSearchResult);
406404
});

0 commit comments

Comments
 (0)