* chore: remove old files * chore: change JS tests to TS, delete dummy tests * chore: bump manifests version
27 lines
752 B
TypeScript
27 lines
752 B
TypeScript
import chai from 'chai';
|
|
import changeExtensionTooltip from '../../src/utils/changeExtensionTooltip';
|
|
|
|
const expect = chai.expect;
|
|
|
|
jest.mock('webextension-polyfill', () => {
|
|
return {
|
|
runtime: {
|
|
getManifest: () => {
|
|
return { version: 'test-version' };
|
|
},
|
|
},
|
|
};
|
|
});
|
|
|
|
describe('changeExtensionTooltip', function () {
|
|
it('should be a function', function () {
|
|
expect(changeExtensionTooltip).to.be.a('function');
|
|
});
|
|
|
|
// it('should change the extension tooltip', function() {
|
|
// changeExtensionTooltip('WakaTime');
|
|
// expect(chrome.browserAction.setTitle).toHaveBeenCalledWith({title: 'Wakatime'});
|
|
// sinon.assert.calledWithMatch(chrome.browserAction.setTitle, {title: 'WakaTime'});
|
|
// });
|
|
});
|