Adding code to track visualization lifecycle events

This commit is contained in:
Jeff Avallone
2014-12-17 19:54:58 -05:00
parent c64e48946e
commit 7de0a6490a
2 changed files with 22 additions and 1 deletions
+9
View File
@@ -258,6 +258,15 @@ describe('regexper.js', function() {
});
describe('#trackEvent', function() {
it('adds a _trackEvent call to gaq', function() {
this.regexper._trackEvent('category', 'action');
expect(this.regexper.gaq).toContain(['_trackEvent', 'category', 'action']);
});
});
describe('#showExpression', function() {
beforeEach(function() {