Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: import 'sign-addon' correctly (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
iorate authored Mar 18, 2020
1 parent 692e8a0 commit 6033290
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs')
const path = require('path')

const webExt = require('web-ext').default
const defaultAddonSigner = require('sign-addon')
const defaultAddonSigner = require('sign-addon').default

const { allowedChannels } = require('./constants')
const { verifyOptions } = require('./utils')
Expand Down
4 changes: 3 additions & 1 deletion tests/__mocks__/sign-addon.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module.exports = jest.fn()
module.exports = {
default: jest.fn(),
}
2 changes: 1 addition & 1 deletion tests/publish.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs')
const path = require('path')

const { vol } = require('memfs')
const signAddon = require('sign-addon')
const signAddon = require('sign-addon').default

const { publish } = require('../src')

Expand Down

0 comments on commit 6033290

Please sign in to comment.