Skip to content

Commit 4374489

Browse files
committed
fix tests
1 parent c49838e commit 4374489

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Drift.prototype.initialize = function() {
5353
*/
5454

5555
Drift.prototype.loaded = function() {
56-
return window.driftt !== undefined;
56+
return window.drift !== undefined;
5757
};
5858

5959
/**

test/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ describe('Drift', function() {
6969
analytics.stub(window.driftt, 'identify');
7070
});
7171

72-
it('should not send an id without an email', function() {
72+
it('should send an id without an email', function() {
7373
analytics.identify('id');
74-
analytics.didNotCall(window.driftt.identify);
74+
analytics.called(window.driftt.identify, 'id');
7575
});
7676

7777
it('should send an id with an email', function() {

0 commit comments

Comments
 (0)