Skip to content

Commit a697bab

Browse files
committed
linting fix
1 parent da204e6 commit a697bab

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

test/unit/cachers/base.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ describe("Test middleware", () => {
440440
cacher
441441
});
442442

443-
(cacher.get = jest.fn(() => Promise.resolve(cachedData))), (cacher.set = jest.fn());
443+
cacher.get = jest.fn(() => Promise.resolve(cachedData));
444+
cacher.set = jest.fn();
444445

445446
let mockAction = {
446447
name: "posts.find",

test/unit/middlewares/tracing.spec.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -764,20 +764,20 @@ describe("Test TracingMiddleware localAction", () => {
764764
rawName: "find",
765765
handler
766766
};
767-
(ctx.params = {
767+
ctx.params = {
768768
a: 2,
769769
b: "John",
770770
c: {
771771
d: 100,
772772
e: true
773773
}
774-
}),
775-
(ctx.meta = {
776-
user: {
777-
name: "Adam",
778-
age: 30
779-
}
780-
});
774+
};
775+
ctx.meta = {
776+
user: {
777+
name: "Adam",
778+
age: 30
779+
}
780+
};
781781
});
782782

783783
it("should create a span with local custom tags function even if global custom tags are specified", async () => {
@@ -1946,20 +1946,20 @@ describe("Test TracingMiddleware localEvent", () => {
19461946
handler
19471947
};
19481948
ctx.tracing = true;
1949-
(ctx.params = {
1949+
ctx.params = {
19501950
a: 2,
19511951
b: "John",
19521952
c: {
19531953
d: 100,
19541954
e: true
19551955
}
1956-
}),
1957-
(ctx.meta = {
1958-
user: {
1959-
name: "Adam",
1960-
age: 30
1961-
}
1962-
});
1956+
};
1957+
ctx.meta = {
1958+
user: {
1959+
name: "Adam",
1960+
age: 30
1961+
}
1962+
};
19631963
});
19641964

19651965
it("should create a span with local custom tags function even if global custom event tags are specified", async () => {

0 commit comments

Comments
 (0)