Skip to content

Commit

Permalink
Fix test description
Browse files Browse the repository at this point in the history
  • Loading branch information
quartercastle committed Oct 11, 2017
1 parent f93b6d9 commit da4970a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/__snapshots__/autoloader.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Should include the correct folders and create a namespace module 1`] = `
exports[`Should include the correct folders and create object which follows the folder structure 1`] = `
Object {
"file": Object {
"key": "value",
Expand Down Expand Up @@ -36,4 +36,4 @@ exports[`Should throw an exception if the path doesn't exist 1`] = `"The path ./

exports[`Should throw an exection if the first argument isn't a string 1`] = `"First argument should be a string"`;

exports[`Should work width ES module 1`] = `[Function]`;
exports[`Should work with ES module 1`] = `[Function]`;
4 changes: 2 additions & 2 deletions test/autoloader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import path from 'path'
import autoloader from '../src/autoloader'

test('Should include the correct folders and create a namespace module', () => {
test('Should include the correct folders and create object which follows the folder structure', () => {
const modules = autoloader(path.resolve(__dirname, './modules'))
expect(modules).toMatchSnapshot()
})
Expand Down Expand Up @@ -35,7 +35,7 @@ test('Should only include json files', () => {
expect(modules.file).toBe(undefined)
})

test('Should work width ES module', () => {
test('Should work with ES module', () => {
const modules = autoloader(path.resolve(__dirname, './modules'))

expect(modules.submodules.esModule.hello).toBe('world')
Expand Down

0 comments on commit da4970a

Please sign in to comment.