Skip to content

Commit

Permalink
Test: Fix failing tests with ava 0.24
Browse files Browse the repository at this point in the history
The cause were imports in test.js from a test dir (ava/no-import-test-files).
Renamed test/helpers to fixtures to avoid this.
  • Loading branch information
rodrigobdz committed Apr 23, 2019
1 parent 7e617ad commit a9a6a52
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function validi18n(translations) {
if (!ret) {
console.error(missingTranslations);
}

return ret;
}

Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import test from 'ava';
// Translations
import sameKeys from './test/helpers/same-keys';
import differentKeys from './test/helpers/different-keys';
import sameKeys from './fixtures/same-keys';
import differentKeys from './fixtures/different-keys';
import validi18n from '.';

const I18n = {
Expand Down

0 comments on commit a9a6a52

Please sign in to comment.