Skip to content

Commit

Permalink
Stub reporter warn() and error() in traslator.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pdcp1 committed Nov 9, 2024
1 parent faae3f6 commit 85cadc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/gatsby-site/playwright/e2e/unit/translator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test('Translations - Should translate languages only if report language differs

const translatedReportsES = [];

const reporter = { log: sinon.stub() };
const reporter = { log: sinon.stub(), error: sinon.stub(), warn: sinon.stub() };

const reportsCollection = {
find: sinon.stub().returns({
Expand Down Expand Up @@ -162,7 +162,7 @@ test("Translations - Shouldn't call Google's translate api and use translation p

const translatedReportsES = [];

const reporter = { log: sinon.stub() };
const reporter = { log: sinon.stub(), error: sinon.stub(), warn: sinon.stub() };

const reportsCollection = {
find: sinon.stub().returns({
Expand Down Expand Up @@ -341,7 +341,7 @@ test('Translations - Should not translate if the report was already translated',
},
];

const reporter = { log: sinon.stub() };
const reporter = { log: sinon.stub(), error: sinon.stub(), warn: sinon.stub() };

const reportsCollection = {
find: sinon.stub().returns({
Expand Down

0 comments on commit 85cadc5

Please sign in to comment.