diff --git a/src/cypher.ts b/src/cypher.ts index dc4d960..5f65d0b 100644 --- a/src/cypher.ts +++ b/src/cypher.ts @@ -61,7 +61,7 @@ export class Cypher { for (let i = 0; i < message.length; i++) { const char: string = message.charAt(i); const index: number = dictSource.indexOf(char); - if(!dictTarget[index]) continue; + if (!dictTarget[index]) continue; result += dictTarget[index]; } return result; diff --git a/src/index.ts b/src/index.ts index 4121ad7..166ade3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import {Cypher} from "@src/cypher"; +import { Cypher } from '@src/cypher'; console.log('Hello World!'); const cypher: Cypher = new Cypher(); diff --git a/tests/cypher.test.ts b/tests/cypher.test.ts index bf21c57..02075cb 100644 --- a/tests/cypher.test.ts +++ b/tests/cypher.test.ts @@ -1,4 +1,4 @@ -import {Cypher} from '@src/cypher'; +import { Cypher } from '@src/cypher'; describe('Cypher', () => { it('should be OK', () => {