Skip to content

Commit

Permalink
some small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gergoabraham committed Aug 20, 2023
1 parent 9be4d57 commit f795b70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit/BackgroundScript-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Background script', function () {
});

describe('main search algorithm', function () {
it(`search remote page using "feeling lucky" and return with the scores`, async function () {
it(`search remote page using "feeling lucky" and return the scores`, async function () {
const movieInfo = new MovieInfo(
'The Shawshank Redemption',
1994,
Expand All @@ -38,8 +38,8 @@ describe('Background script', function () {
});

const expected = new MovieInfoWithRatings(
new MovieInfo('The Shawshank Redemption', 1994, 'Frank Darabont'),
`https://www.rottentomatoes.com/m/shawshank_redemption`,
movieInfo,
'https://www.rottentomatoes.com/m/shawshank_redemption',
RottenPage.NAME,
null,
new Summary(
Expand All @@ -53,7 +53,7 @@ describe('Background script', function () {
shouldBeSimilar(expected, actual);
});

it('return with the first result when "feeling lucky" doesn\'t work - one way', async function () {
it('return the first result when "feeling lucky" doesn\'t work - one way', async function () {
const movieInfo = new MovieInfo("Amblin'", 1968, 'Steven Spielberg');

const actual = await BackgroundScript._getRemotePageData({
Expand All @@ -62,7 +62,7 @@ describe('Background script', function () {
});

const expected = new MovieInfoWithRatings(
new MovieInfo("Amblin'", 1968, 'Steven Spielberg'),
movieInfo,
`https://www.rottentomatoes.com/m/amblin`,
RottenPage.NAME,
null,
Expand Down

0 comments on commit f795b70

Please sign in to comment.