Skip to content

Commit

Permalink
fix: Do not use export default but only export
Browse files Browse the repository at this point in the history
Otherwise we have to do cozy.bar.default.init
  • Loading branch information
ptbrowne committed Sep 15, 2020
1 parent 8ef80ec commit 8e50166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const {

const version = __VERSION__

export default {
export {
init,
version,
setBarCenter,
Expand Down
2 changes: 1 addition & 1 deletion src/index.spec.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CozyClient from 'cozy-client'
import cozyBar from './index'
import * as cozyBar from './index'

describe('init', () => {
beforeEach(() => {
Expand Down

0 comments on commit 8e50166

Please sign in to comment.