mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-20 00:04:14 +02:00
11 lines
425 B
JavaScript
11 lines
425 B
JavaScript
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');
|
|
});
|
|
});
|
|
});
|
|
}); |