We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49838e commit 4374489Copy full SHA for 4374489
lib/index.js
@@ -53,7 +53,7 @@ Drift.prototype.initialize = function() {
53
*/
54
55
Drift.prototype.loaded = function() {
56
- return window.driftt !== undefined;
+ return window.drift !== undefined;
57
};
58
59
/**
test/index.test.js
@@ -69,9 +69,9 @@ describe('Drift', function() {
69
analytics.stub(window.driftt, 'identify');
70
});
71
72
- it('should not send an id without an email', function() {
+ it('should send an id without an email', function() {
73
analytics.identify('id');
74
- analytics.didNotCall(window.driftt.identify);
+ analytics.called(window.driftt.identify, 'id');
75
76
77
it('should send an id with an email', function() {
0 commit comments