Commit ac12bdbb authored by Eduardo Sanz García's avatar Eduardo Sanz García Committed by Eduardo

BucketBar: convert to named export

parent 2d1b7010
...@@ -14,7 +14,7 @@ import { computeBuckets } from './util/buckets'; ...@@ -14,7 +14,7 @@ import { computeBuckets } from './util/buckets';
* *
* @implements {Destroyable} * @implements {Destroyable}
*/ */
export default class BucketBar { export class BucketBar {
/** /**
* @param {HTMLElement} container * @param {HTMLElement} container
* @param {object} options * @param {object} options
......
...@@ -6,7 +6,7 @@ import { ListenerCollection } from '../shared/listener-collection'; ...@@ -6,7 +6,7 @@ import { ListenerCollection } from '../shared/listener-collection';
import { PortRPC } from '../shared/messaging'; import { PortRPC } from '../shared/messaging';
import { annotationCounts } from './annotation-counts'; import { annotationCounts } from './annotation-counts';
import BucketBar from './bucket-bar'; import { BucketBar } from './bucket-bar';
import { createAppConfig } from './config/app'; import { createAppConfig } from './config/app';
import { features } from './features'; import { features } from './features';
import sidebarTrigger from './sidebar-trigger'; import sidebarTrigger from './sidebar-trigger';
......
import BucketBar, { $imports } from '../bucket-bar'; import { BucketBar, $imports } from '../bucket-bar';
describe('BucketBar', () => { describe('BucketBar', () => {
let bucketBars; let bucketBars;
......
...@@ -155,7 +155,7 @@ describe('Sidebar', () => { ...@@ -155,7 +155,7 @@ describe('Sidebar', () => {
$imports.$mock({ $imports.$mock({
'../shared/frame-error-capture': { sendErrorsTo: fakeSendErrorsTo }, '../shared/frame-error-capture': { sendErrorsTo: fakeSendErrorsTo },
'../shared/messaging': { PortRPC: FakePortRPC }, '../shared/messaging': { PortRPC: FakePortRPC },
'./bucket-bar': { default: FakeBucketBar }, './bucket-bar': { BucketBar: FakeBucketBar },
'./config/app': { createAppConfig: fakeCreateAppConfig }, './config/app': { createAppConfig: fakeCreateAppConfig },
'./toolbar': { './toolbar': {
ToolbarController: FakeToolbarController, ToolbarController: FakeToolbarController,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment