Skip to content

Commit

Permalink
chore(package): update ava to version 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and pvdlg committed Jan 28, 2020
1 parent 25728da commit 15c87a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"version": "0.0.0-development",
"author": "Pierre Vanduynslager (https://github.com/pvdlg)",
"ava": {
"helpers": [
"test/helpers/**/*"
],
"files": [
"test/*.test.js"
]
Expand All @@ -17,7 +14,7 @@
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"ava": "^2.4.0",
"ava": "^3.1.0",
"codecov": "^3.0.0",
"conventional-changelog-metahub": "^4.0.0",
"eslint-plugin-sort-class-members": "^1.2.0",
Expand Down
10 changes: 6 additions & 4 deletions test/helpers/karma.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pEvent from 'p-event';
import {Server, constants} from 'karma';
import karmaJasmineJQuery from '../..';
const pEvent = require('p-event');
const {Server, constants} = require('karma');
const karmaJasmineJQuery = require('../..');

/**
* Base Karma configuration tu run plugin.
Expand Down Expand Up @@ -47,7 +47,7 @@ const KARMA_CONFIG = {
* @param {string|Array<string>} frameworks Karma frameworks to include in the run.
* @return {Promise<KarmaOutput>} A `Promise` that resolve to the Karma execution results.
*/
export default async function run(fixtures, frameworks) {
async function run(fixtures, frameworks) {
const server = new Server(
Object.assign(KARMA_CONFIG, {
files: Array.isArray(fixtures) ? fixtures : [fixtures],
Expand All @@ -73,3 +73,5 @@ export default async function run(fixtures, frameworks) {
return {success, failed, error: err, disconnected, exitCode: 1};
}
}

module.exports = run;
4 changes: 2 additions & 2 deletions test/plugin.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import run from './helpers/karma';
const test = require('ava');
const run = require('./helpers/karma');

test('Jasmine-JQuery should be loaded', async t => {
const fixture = 'test/fixtures/jasmine-jquery.test.js';
Expand Down

0 comments on commit 15c87a9

Please sign in to comment.