Skip to content

Commit

Permalink
fix(remove-unused-screens): temporary remove "silent" from read tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaGod committed Mar 22, 2022
1 parent f8393d0 commit 74ad1fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cli-commands/remove-unused-screens/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports.getTestsFromFs = async (hermione) => {
screenPatterns: []
};

const testCollection = await hermione.readTests([], {silent: true});
const testCollection = await hermione.readTests();

testCollection.eachTest((test, browserId) => {
const id = `${test.fullTitle()} ${browserId}`;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/lib/cli-commands/remove-unused-screens/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ describe('lib/cli-commands/remove-unused-screens/utils', () => {
getScreenshotPath = sandbox.stub();
});

it('should read all hermione tests silently', async () => {
it('should read all hermione tests', async () => {
const hermione = mkHermione_();

await utils.getTestsFromFs(hermione);

assert.calledOnceWith(hermione.readTests, [], {silent: true});
assert.calledOnceWith(hermione.readTests);
});

it('should add test tests tree with its screen info', async () => {
Expand Down

0 comments on commit 74ad1fc

Please sign in to comment.