Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"license": "MIT",
"dependencies": {
"Base64": "^0.3.0",
"chalk": "^1.1.1",
"chalk": "^2.0.0",
"chrono-node": "^1.0.8",
"dateformat": "^1.0.11",
"isomorphic-fetch": "^2.2.0",
Expand All @@ -36,7 +36,8 @@
"user-home": "^2.0.0",
"xml2js": "^0.4.16",
"yam": "^0.0.19",
"yargs": "^4.1.0"
"yargs": "^4.1.0",
"strip-ansi": "^6.0.0"
},
"devDependencies": {
"ava": "^0.15.1",
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import stripAnsi from 'strip-ansi'
import test from 'ava';
import 'babel-register';
import { getResult, getXMLresult } from '../src/util/parseXML';
import { format, transform } from '../src/util/format';
import getReviews from '../src/util/getReviews';
import { readFileSync } from 'fs';
import nock from 'nock';
import { stripColor } from 'chalk';

test('parseXML/getResult', t => {
t.plan(4);
Expand Down Expand Up @@ -51,7 +51,7 @@ test('getReviews', t => {

test('format', t => {
const data = JSON.parse(readFileSync('./fixture/format.json', { encoding: 'utf8' }));
const output = stripColor(format(transform(data)));
const output = stripAnsi(format(transform(data)));
const fixture = readFileSync('./fixture/format.txt', { encoding: 'utf8' });

t.deepEqual(output, fixture);
Expand Down