fix(test): display correct error when golden files mismatch (#3234)

This commit is contained in:
Joel Einbinder 2020-07-30 11:20:48 -07:00 committed by GitHub
parent 19e8c0fe66
commit 08916781a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ class PlaywrightEnvironment extends NodeEnvironment {
snapshotState.matched++;
else
snapshotState.unmatched++;
return {pass, message};
return {pass, message: () => message};
};
this.global.expect.extend({ toBeGolden });
}