From 275ce6ec51ac7707b1a7ce728584c761d0cfb1c8 Mon Sep 17 00:00:00 2001 From: Chyroc Chen Date: Tue, 24 Jan 2017 13:11:57 +0800 Subject: [PATCH] default-export --- src/index.js | 2 +- test/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 6fb0d5b..a453e68 100644 --- a/src/index.js +++ b/src/index.js @@ -48,7 +48,7 @@ const linkUri = `${version}/link` const jobUri = `${version}/job` const submissionsUri = `${version}/submissions` -export class Hasoop { +export default class Hasoop { constructor (config) { this.userName = config.userName this.host = config.host diff --git a/test/index.js b/test/index.js index e4748cf..d08e769 100644 --- a/test/index.js +++ b/test/index.js @@ -1,6 +1,6 @@ /* eslint-env mocha */ -import { Hasoop, version, linkType } from '../src/index' +import Hasoop, { version, linkType } from '../src/index' const config = { 'userName': 'Developer',