Skip to content

Commit

Permalink
🔧 Chore: Ava cannot transpile helpers yet
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Jan 22, 2018
1 parent 6040499 commit 02757f6
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 22 deletions.
12 changes: 0 additions & 12 deletions package.json
Expand Up @@ -7,17 +7,6 @@
"index.js",
"lib/"
],
"ava": {
"files": [
"tests/**/*.js"
],
"babel": "inherit",
"require": [
"babel-register",
"babel-polyfill"
],
"failFast": true
},
"scripts": {
"semantic-release": "semantic-release -e ./config/release.config.js",
"compile": "babel -d lib/ src/ --source-maps both --no-comments",
Expand Down Expand Up @@ -54,7 +43,6 @@
"ava": "^0.24.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-register": "^6.26.0",
"conventional-changelog-eslint": "^0.3.0",
Expand Down
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
import test from 'ava';
import TorrentLibrary from '../../src/TorrentLibrary';
import TorrentLibrary from '../../index';
import { files, folders } from '../_constants';


Expand Down
2 changes: 1 addition & 1 deletion tests/getters/allMovies.js → test/getters/allMovies.js
@@ -1,7 +1,7 @@
import test from 'ava';
import path from 'path';
import { parse as nameParser } from 'parse-torrent-title';
import TorrentLibrary from '../../src/TorrentLibrary';
import TorrentLibrary from '../../index';
import { files, folders } from '../_constants';

// TESTS
Expand Down
@@ -1,7 +1,7 @@
import test from 'ava';
import path from 'path';
import { parse as nameParser } from 'parse-torrent-title';
import TorrentLibrary from '../../src/TorrentLibrary';
import TorrentLibrary from '../../index';
import { files, folders } from '../_constants';

// TESTS
Expand Down
2 changes: 1 addition & 1 deletion tests/getters/constants.js → test/getters/constants.js
@@ -1,6 +1,6 @@
import test from 'ava';
import videosExtension from 'video-extensions';
import TorrentLibrary from '../../src/TorrentLibrary';
import TorrentLibrary from '../../index';

test('Constant MOVIES_TYPE', (t) => {
t.is(
Expand Down
2 changes: 1 addition & 1 deletion tests/methods/addNewPath.js → test/methods/addNewPath.js
@@ -1,7 +1,7 @@
import test from 'ava';
import path from 'path';
import * as sinon from 'sinon';
import TorrentLibrary from '../../src/TorrentLibrary';
import TorrentLibrary from '../../index';
import { folders } from '../_constants';

// TESTS
Expand Down
@@ -1,5 +1,5 @@
import test from 'ava';
import TorrentLibrary from '../../src/TorrentLibrary';
import TorrentLibrary from '../../index';
import { folders } from '../_constants';

test('create a perfect copy of instance', async (t) => {
Expand Down
@@ -1,9 +1,8 @@
// TODO
import test from 'ava';
import path from 'path';
import * as sinon from 'sinon';
import { parse as nameParser } from 'parse-torrent-title';
import TorrentLibrary from '../../src/TorrentLibrary';
import TorrentLibrary from '../../index';
import { files, folders } from '../_constants';

test('Should not be able to remove not present files', async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/methods/scan.js → test/methods/scan.js
@@ -1,6 +1,6 @@
import test from 'ava';
import * as sinon from 'sinon';
import TorrentLibrary from '../../src/TorrentLibrary';
import TorrentLibrary from '../../index';
import { folders } from '../_constants';

// TESTS
Expand Down
2 changes: 1 addition & 1 deletion tests/methods/toJSON.js → test/methods/toJSON.js
@@ -1,5 +1,5 @@
import test from 'ava';
import TorrentLibrary from '../../src/TorrentLibrary';
import TorrentLibrary from '../../index';
import { expectedJson, folders } from '../_constants';

test('return a valid stringified JSON', async (t) => {
Expand Down

0 comments on commit 02757f6

Please sign in to comment.