Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 91f3611

Browse filesBrowse files
committed
fix jasmine matchers deprecation error
1 parent aad1c6a commit 91f3611
Copy full SHA for 91f3611

File tree

Expand file treeCollapse file tree

2 files changed

+18
-18
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+18
-18
lines changed

‎packages/allure-jasmine/test/matchers.ts

Copy file name to clipboardExpand all lines: packages/allure-jasmine/test/matchers.ts
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ const compare: (actual: any, expected: any) => boolean = (actual, expected) => {
4141
};
4242

4343
export const matchers = {
44-
toHaveTestLike: (
45-
util: MatchersUtil,
46-
customEqualityTesters: Readonly<CustomEqualityTester[]>,
47-
) => ({
44+
toHaveTestLike: (util: MatchersUtil) => ({
4845
compare: (actual: any, expected: any) => ({
4946
pass: compare(actual, { tests: [expected] }),
5047
message:

‎packages/allure-jasmine/test/step.test.ts

Copy file name to clipboardExpand all lines: packages/allure-jasmine/test/step.test.ts
+17-14Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ describe("Allure result", () => {
1616
});
1717
};
1818

19-
it("should contain passed step", async function () {
19+
it("should contain passed step", async () => {
2020
const result = await runTest(example);
21+
2122
expect(result).toHaveTestLike({
2223
status: Status.PASSED,
2324
steps: [
@@ -43,21 +44,22 @@ describe("Allure result", () => {
4344

4445
let result: any;
4546

46-
beforeAll(async function () {
47+
beforeAll(async () => {
4748
result = await runTest(example);
4849
});
4950

50-
xit("should contain failed step", () => {
51-
expect(result).toHaveTestLike({
52-
status: Status.FAILED,
53-
steps: [
54-
{
55-
name: "failed step name",
56-
status: Status.FAILED,
57-
},
58-
],
59-
});
60-
});
51+
// FIXME: temporarily removed `xit` because it breaks the test on CI level
52+
// it("should contain failed step", () => {
53+
// expect(result).toHaveTestLike({
54+
// status: Status.FAILED,
55+
// steps: [
56+
// {
57+
// name: "failed step name",
58+
// status: Status.FAILED,
59+
// },
60+
// ],
61+
// });
62+
// });
6163

6264
it("should contain details message", () => {
6365
expect(result).toHaveTestLike({
@@ -82,8 +84,9 @@ describe("Allure result", () => {
8284
});
8385
};
8486

85-
it("should contain all nested step", async function () {
87+
it("should contain all nested step", async () => {
8688
const result = await runTest(example);
89+
8790
expect(result).toHaveTestLike({
8891
status: Status.PASSED,
8992
steps: [

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.