Skip to content

Commit

Permalink
define referrer for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuffynism committed Jun 13, 2024
1 parent cd0e3e7 commit e8db3d4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ describe('buildCommerceEngine', () => {
}

beforeEach(() => {
Object.defineProperty(global, 'document', {
value: {referrer: 'referrer'},
configurable: true,
});
options = {
configuration: getSampleCommerceEngineConfiguration(),
loggerOptions: {level: 'silent'},
Expand Down

0 comments on commit e8db3d4

Please sign in to comment.