created sample spy test on chrome api

This commit is contained in:
Stephen Rodriguez
2015-07-03 13:14:08 -04:00
parent 9598a53788
commit d6b9ccf640
2 changed files with 18 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
var chai = require('chai');
var sinon = require('sinon');
var chrome = require('sinon-chrome');
var expect = chai.expect;
describe('Chrome Dev Tools', function() {
it('should work', function() {
chrome.browserAction.setTitle({title: 'hello'});
sinon.assert.calledOnce(chrome.browserAction.setTitle);
});
});