Skip to content

Created solution and unit tests for the tasks dragon-curve and rotate-…#11

Open
Wital619 wants to merge 2 commits into
front-camp-2018:masterfrom
Wital619:solution
Open

Created solution and unit tests for the tasks dragon-curve and rotate-…#11
Wital619 wants to merge 2 commits into
front-camp-2018:masterfrom
Wital619:solution

Conversation

@Wital619

Copy link
Copy Markdown

No description provided.

Comment thread src/rotate-matrix/index.spec.js Outdated
@@ -1,5 +1,39 @@
import {rotateMatrix} from './index'
const rotateMatrix = require('./index');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

чому не import?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

При імпорті викидались помилки

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Details:

D:\PROJECTS\javascript-challenge-2\src\rotate-matrix\index.spec.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import { rotateMatrix } from './index';

^^^^^^

SyntaxError: Unexpected token import

  at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:403:17)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Бачу що вирішити можна додавши babel, зробити фікс?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зробив коміт з фіксом

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants