Skip to content

Commit ee7649d

Browse files
committed
refactor test: use url constant for assertion
1 parent 90b1c5e commit ee7649d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/services/githubService.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ describe("githubService", function () {
151151
const path = "search/issues";
152152
const searchParams = `org%3A${org}+type%3Aissue+is%3Aopen&sort=created&per_page=100&page=1`;
153153

154-
expect(response).to.be.equal(`${baseURL}/${path}?q=${searchString}+${searchParams}`);
154+
const url = `${baseURL}/${path}?q=${searchString}+${searchParams}`;
155+
expect(response).to.be.equal(url);
155156
});
156157
});
157158
});

0 commit comments

Comments
 (0)