Skip to content

Commit

Permalink
Fixes spelling of command-implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazzer committed May 11, 2020
1 parent 9239d98 commit fe8386a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {buildApprovalCommands} from './cfn/approval/cli'

export function lazyLoad(fnname: keyof Commands): Handler {
return (args) => {
const {implementations} = require('./cli/command-implemntations');
const {implementations} = require('./cli/command-implementations');
return implementations[fnname](args);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests/test-cli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {expect} from 'chai';

import {buildArgs, lazyLoad} from "../main";
import {implementations} from "../cli/command-implemntations";
import {implementations} from "../cli/command-implementations";
import {} from "../cfn/approval/cli";
import {} from "../cfn/approval/index";

Expand All @@ -21,7 +21,7 @@ describe('cli', () => {
it('lazy loaded implementations are loadable', () => {
expect(typeof lazyLoad('createStackMain')).to.equal('function');
expect(implementations.createStackMain).to.equal(
require('../cli/command-implemntations').implementations.createStackMain);
require('../cli/command-implementations').implementations.createStackMain);
});

});

0 comments on commit fe8386a

Please sign in to comment.