Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stoically committed Jun 27, 2019
1 parent d99d06d commit 7b3c701
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/ui/components/advanced/general.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export default {
html: `
<div style="width:500px;">
The popup lets you<ul>
<li> Configure Isolation Per Domain
<li> Configure Isolation
<li> Disable Isolation globally
<li> Convert Temporary to Permanent Container
<li> Convert Permanent to Temporary Container
<li> Open current tab URL in new Temporary Container
Expand Down
2 changes: 1 addition & 1 deletion src/ui/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function init(App, params = {}) {
loadScript('/jquery/jquery.min.js'),
loadScript('/jquery/jquery.address.js'),
loadScript('/semantic/semantic.min.js'),
loadScript('/vue/vue.runtime.js'),
loadScript('/vue/vue.runtime.min.js'),
import('./root')
]).then(promises => {
const root = promises.pop().default;
Expand Down
2 changes: 1 addition & 1 deletion test/background.browseractions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ preferencesTestSet.map(preferences => { describe(`preferences: ${JSON.stringify(

browser.contextualIdentities.create.should.have.been.calledWith({
name: 'tmp1',
color: 'red',
color: 'toolbar',
icon: 'circle'
});
browser.tabs.create.should.have.been.calledWith({
Expand Down
4 changes: 1 addition & 3 deletions test/background.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ preferencesTestSet.map(preferences => { describe(`preferences: ${JSON.stringify(

browser.runtime.onInstalled.addListener.should.have.been.calledOnce;
browser.runtime.onStartup.addListener.should.have.been.calledOnce;

browser.runtime.onMessage.addListener.yield();
background.runtime.onMessage.should.have.been.calledOnce;
browser.runtime.onMessage.addListener.should.have.been.calledOnce;

browser.windows.onFocusChanged.addListener.yield();
background.contextmenu.windowsOnFocusChanged.should.have.been.calledOnce;
Expand Down

0 comments on commit 7b3c701

Please sign in to comment.