diff --git a/src/plugin/tasks/struct/snippets/src/index.js b/src/plugin/tasks/struct/snippets/src/index.js index 42b1165c..f99b23cc 100644 --- a/src/plugin/tasks/struct/snippets/src/index.js +++ b/src/plugin/tasks/struct/snippets/src/index.js @@ -1,7 +1,7 @@ -import * as lambdaMonitor from 'lambda-monitor'; +import lambdaMonitor from 'lambda-monitor'; -export const batcherHandler = lambdaMonitor.batcherHandler; -export const bundlerHandler = lambdaMonitor.bundlerHandler; -export const processLogs = lambdaMonitor.processLogs; -export const subscribe = lambdaMonitor.subscribe; -export const emptyBucket = lambdaMonitor.emptyBucket; +export const batcherHandler = lambdaMonitor.exports.batcherHandler; +export const bundlerHandler = lambdaMonitor.exports.bundlerHandler; +export const processLogs = lambdaMonitor.exports.processLogs; +export const subscribe = lambdaMonitor.exports.subscribe; +export const emptyBucket = lambdaMonitor.exports.emptyBucket; diff --git a/src/plugin/tasks/struct/snippets/test/index.spec.js b/src/plugin/tasks/struct/snippets/test/index.spec.js index be789089..363a3830 100644 --- a/src/plugin/tasks/struct/snippets/test/index.spec.js +++ b/src/plugin/tasks/struct/snippets/test/index.spec.js @@ -1,14 +1,14 @@ import { expect } from 'chai'; -import index from '../src/index.js'; +import * as index from '../src/index.js'; describe('Testing index.js', () => { it('Testing Exports', () => { expect(Object.keys(index)).to.deep.equal([ 'batcherHandler', 'bundlerHandler', + 'emptyBucket', 'processLogs', - 'subscribe', - 'emptyBucket' + 'subscribe' ]); }); }); diff --git a/test/projects/assorted/@default/src/index.js b/test/projects/assorted/@default/src/index.js index 42b1165c..f99b23cc 100644 --- a/test/projects/assorted/@default/src/index.js +++ b/test/projects/assorted/@default/src/index.js @@ -1,7 +1,7 @@ -import * as lambdaMonitor from 'lambda-monitor'; +import lambdaMonitor from 'lambda-monitor'; -export const batcherHandler = lambdaMonitor.batcherHandler; -export const bundlerHandler = lambdaMonitor.bundlerHandler; -export const processLogs = lambdaMonitor.processLogs; -export const subscribe = lambdaMonitor.subscribe; -export const emptyBucket = lambdaMonitor.emptyBucket; +export const batcherHandler = lambdaMonitor.exports.batcherHandler; +export const bundlerHandler = lambdaMonitor.exports.bundlerHandler; +export const processLogs = lambdaMonitor.exports.processLogs; +export const subscribe = lambdaMonitor.exports.subscribe; +export const emptyBucket = lambdaMonitor.exports.emptyBucket; diff --git a/test/projects/assorted/@default/test/index.spec.js b/test/projects/assorted/@default/test/index.spec.js index be789089..363a3830 100644 --- a/test/projects/assorted/@default/test/index.spec.js +++ b/test/projects/assorted/@default/test/index.spec.js @@ -1,14 +1,14 @@ import { expect } from 'chai'; -import index from '../src/index.js'; +import * as index from '../src/index.js'; describe('Testing index.js', () => { it('Testing Exports', () => { expect(Object.keys(index)).to.deep.equal([ 'batcherHandler', 'bundlerHandler', + 'emptyBucket', 'processLogs', - 'subscribe', - 'emptyBucket' + 'subscribe' ]); }); });