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 27, 2020
1 parent 36200dc commit 1c25094
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"read-pkg-up": "^7.0.0"
},
"devDependencies": {
"ava": "^2.0.0",
"ava": "^3.1.0",
"codecov": "^3.0.0",
"conventional-changelog-atom": "^2.0.0",
"conventional-changelog-conventionalcommits": "^4.1.0",
Expand Down
24 changes: 12 additions & 12 deletions test/integration.test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {promisify} from 'util';
import path from 'path';
import test from 'ava';
import {outputJson} from 'fs-extra';
import escape from 'escape-string-regexp';
import tempy from 'tempy';
import proxyquire from 'proxyquire';
import {spy} from 'sinon';
import {generateNotes} from '..';
const {promisify} = require('util');
const path = require('path');
const test = require('ava');
const {outputJson} = require('fs-extra');
const escape = require('escape-string-regexp');
const tempy = require('tempy');
const proxyquire = require('proxyquire');
const {spy} = require('sinon');
const {generateNotes} = require('..');

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

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

test('ReThrow error from "conventional-changelog"', async t => {
test('ReThrow error = require("conventional-changelog"', async t => {
const commits = [
{hash: '111', message: 'Fix: First fix (fixes #123)'},
{hash: '222', message: 'Update: Second feature (fixes #456)'},
Expand All @@ -636,6 +636,6 @@ test('ReThrow error from "conventional-changelog"', async t => {
},
{cwd, options: {repositoryUrl}, lastRelease, nextRelease, commits}
),
'Test error'
{message: 'Test error'}
);
});
4 changes: 2 additions & 2 deletions test/load-changelog-config.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import loadChangelogConfig from '../lib/load-changelog-config';
const test = require('ava');
const loadChangelogConfig = require('../lib/load-changelog-config');

const cwd = process.cwd();

Expand Down

0 comments on commit 1c25094

Please sign in to comment.