Skip to content

Commit 1147422

Browse files
Changed OR operator to old syntax (#925)
1 parent 21cc14f commit 1147422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Cypress.Commands.add('percySnapshot', (name, options = {}) => {
3737
name = undefined;
3838
}
3939
// Default name to test title
40-
name ||= cy.state('runnable').fullTitle();
40+
name = name || cy.state('runnable').fullTitle();
4141

4242
const meta = {
4343
snapshot: {

0 commit comments

Comments
 (0)