Skip to content

Commit

Permalink
Updated default_reporter test with snapshots and updated files names …
Browse files Browse the repository at this point in the history
…for consistency.
  • Loading branch information
excitement-engineer committed Aug 26, 2017
1 parent 4f6ccda commit a88e95d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ const testCase = {
path: '/foo',
};
const testResult = {
snapshot: {
added: 0,
fileDeleted: true,
matched: 1,
unchecked: 0,
unmatched: 0,
updated: 0,
},
testFilePath: '/foo',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

'use strict';

const getSnapshotStatus = require('../getSnapshotStatus');
const getSnapshotStatus = require('../get_snapshot_status');

test('Retrieves the snapshot status', () => {
const snapshotResult = {
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-cli/src/reporters/default_reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import isCI from 'is-ci';
import BaseReporter from './base_reporter';
import Status from './Status';
import getResultHeader from './get_result_header';
const getSnapshotStatus = require('./getSnapshotStatus');
import getSnapshotStatus from './get_snapshot_status';

type write = (chunk: string, enc?: any, cb?: () => void) => boolean;
type FlushBufferedOutput = () => void;
Expand Down

0 comments on commit a88e95d

Please sign in to comment.