mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-20 16:22:52 +02:00
committed by
Kumar McMillan
parent
01181a350b
commit
395786e353
@@ -0,0 +1,11 @@
|
||||
describe('Background', function() {
|
||||
describe('ping', function() {
|
||||
it('should return pong in response', function() {
|
||||
// Return a promise for Mocha using the Firefox browser API instead of chrome.
|
||||
return browser.runtime.sendMessage({action: 'ping'})
|
||||
.then(function(response) {
|
||||
expect(response).to.equal('pong');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
describe('Array', function() {
|
||||
describe('#indexOf()', function() {
|
||||
it('should return -1 when the value is not present', function() {
|
||||
expect([1,2,3]).to.not.contain(5);
|
||||
expect([1,2,3]).to.not.contain(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user