Skip to content

Commit 1c25094

Browse files
greenkeeper[bot]pvdlg
authored andcommitted
chore(package): update ava to version 3.1.0
1 parent 36200dc commit 1c25094

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"read-pkg-up": "^7.0.0"
2424
},
2525
"devDependencies": {
26-
"ava": "^2.0.0",
26+
"ava": "^3.1.0",
2727
"codecov": "^3.0.0",
2828
"conventional-changelog-atom": "^2.0.0",
2929
"conventional-changelog-conventionalcommits": "^4.1.0",

test/integration.test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import {promisify} from 'util';
2-
import path from 'path';
3-
import test from 'ava';
4-
import {outputJson} from 'fs-extra';
5-
import escape from 'escape-string-regexp';
6-
import tempy from 'tempy';
7-
import proxyquire from 'proxyquire';
8-
import {spy} from 'sinon';
9-
import {generateNotes} from '..';
1+
const {promisify} = require('util');
2+
const path = require('path');
3+
const test = require('ava');
4+
const {outputJson} = require('fs-extra');
5+
const escape = require('escape-string-regexp');
6+
const tempy = require('tempy');
7+
const proxyquire = require('proxyquire');
8+
const {spy} = require('sinon');
9+
const {generateNotes} = require('..');
1010

1111
const cwd = process.cwd();
1212
const host = 'https://github.com';
@@ -232,7 +232,7 @@ test('Accept a partial "presetConfig" object as option', async t => {
232232
t.regex(changelog, new RegExp(escape('* Change test ([222](https://github.com/owner/repo/commit/222))')));
233233
});
234234

235-
test('Use "gitHead" from "lastRelease" and "nextRelease" if "gitTag" is not defined', async t => {
235+
test('Use "gitHead" = require("lastRelease" and "nextRelease" if "gitTag" is not defined', async t => {
236236
const commits = [
237237
{hash: '111', message: 'fix(scope1): First fix'},
238238
{hash: '222', message: 'feat(scope2): Second feature'},
@@ -619,7 +619,7 @@ test('Throw error if "config" doesn`t exist', async t => {
619619
);
620620
});
621621

622-
test('ReThrow error from "conventional-changelog"', async t => {
622+
test('ReThrow error = require("conventional-changelog"', async t => {
623623
const commits = [
624624
{hash: '111', message: 'Fix: First fix (fixes #123)'},
625625
{hash: '222', message: 'Update: Second feature (fixes #456)'},
@@ -636,6 +636,6 @@ test('ReThrow error from "conventional-changelog"', async t => {
636636
},
637637
{cwd, options: {repositoryUrl}, lastRelease, nextRelease, commits}
638638
),
639-
'Test error'
639+
{message: 'Test error'}
640640
);
641641
});

test/load-changelog-config.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import test from 'ava';
2-
import loadChangelogConfig from '../lib/load-changelog-config';
1+
const test = require('ava');
2+
const loadChangelogConfig = require('../lib/load-changelog-config');
33

44
const cwd = process.cwd();
55

0 commit comments

Comments
 (0)