From 8e5016685fa02d2716c052daca792aa15ec2fdef Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Tue, 15 Sep 2020 08:59:49 +0200 Subject: [PATCH] fix: Do not use export default but only export Otherwise we have to do cozy.bar.default.init --- src/index.jsx | 2 +- src/index.spec.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.jsx b/src/index.jsx index 25051b549..5ce006401 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -214,7 +214,7 @@ const { const version = __VERSION__ -export default { +export { init, version, setBarCenter, diff --git a/src/index.spec.jsx b/src/index.spec.jsx index b7a0798cc..e2786ac40 100644 --- a/src/index.spec.jsx +++ b/src/index.spec.jsx @@ -1,5 +1,5 @@ import CozyClient from 'cozy-client' -import cozyBar from './index' +import * as cozyBar from './index' describe('init', () => { beforeEach(() => {