Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Sep 27, 2018
1 parent eb5894d commit 09c24b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,19 @@
],
"name": "@roarr/cli",
"nyc": {
"all": true,
"include": [
"src/**/*.js"
],
"instrument": false,
"reporter": [
"text-lcov"
"html",
"text-summary"
],
"require": [
"@babel/register"
],
"silent": true,
"sourceMap": false
},
"repository": {
Expand Down
5 changes: 3 additions & 2 deletions test/roarr/roarr.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// @flow

import test from 'ava';
import isRoarrLine from '../../src/bin/commands/utilities/isRoarrLine';

test('foo', (t) => {
t.true(true);
test('identifies Roarr line', (t) => {
t.true(isRoarrLine('{"context":{"package":"@applaudience/cinema-data-scraper","namespace":"scrape","logLevel":20,"scraperPaths":["dist/countries/gb/picturehouse.js"]},"message":"received 1 scraper paths","sequence":0,"time":1538037307418,"version":"1.0.0"}'));
});

0 comments on commit 09c24b6

Please sign in to comment.