Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 0b95070

Browse files
committedSep 6, 2016
Test that attributes are passed into Appcues.page call.
1 parent 73874ec commit 0b95070

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎test/index.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ describe('Appcues', function() {
8282
it('should call Appcues.page', function() {
8383
analytics.page('some page', { someAttr: true });
8484
analytics.called(window.Appcues.page, 'some page');
85+
// No way to assert an argument "match", and analytics.page includes
86+
// other properties automatically, so manually checking the second
87+
// arg to Appcues.page includes the `someAttr` value.
88+
analytics.assert(window.Appcues.page.args[0][1].someAttr === true);
8589
});
8690
});
8791

0 commit comments

Comments
 (0)
This repository has been archived.