Skip to content

Commit

Permalink
update test paths to use aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbutler committed Jan 22, 2019
1 parent 6d4363d commit a76713d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/lib/latepenalty.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai'
import moment from 'moment'

import latePenalty from '../../lib/latepenalty'
import latePenalty from 'lib/latepenalty'

describe('latePenalty', () => {
def('seconds', () => moment.duration($lateness).asSeconds())
Expand Down
4 changes: 2 additions & 2 deletions test/lib/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import sinonChai from 'sinon-chai'
chai.should()
chai.use(sinonChai)

import * as sendMail from '../../lib/mail'
import actionNotifier from '../../lib/notify'
import * as sendMail from 'lib/mail'
import actionNotifier from 'lib/notify'


describe('actionNotifier', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/lib/parse/credit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai'
import moment from 'moment'

import parseCredit, { calculateReliability } from '../../../lib/parse/credit'
import parseCredit, { calculateReliability } from 'lib/parse/credit'

describe('calculateReliability', () => {
subject('reliability', () => calculateReliability($promises))
Expand Down
2 changes: 1 addition & 1 deletion test/lib/parse/promise.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai'
import moment from 'moment'

import { parsePromise, diffPromises } from '../../../lib/parse/promise'
import { parsePromise, diffPromises } from 'lib/parse/promise'

describe('parsePromise', () => {
subject('parsedPromise', () =>
Expand Down
2 changes: 1 addition & 1 deletion test/lib/parse/url.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from 'chai'

import isValidUrl, { isBotFromUserAgent } from '../../../lib/parse/url'
import isValidUrl, { isBotFromUserAgent } from 'lib/parse/url'

describe('isValidUrl', () => {
def('url', () => '/go_for_a_run/by/2:30pm')
Expand Down
2 changes: 1 addition & 1 deletion test/lib/sort.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai'
import moment from 'moment'

import promiseGallerySort from '../../lib/sort'
import promiseGallerySort from 'lib/sort'

describe('promiseGallerySort', () => {
def('lastWeek', () => moment().subtract(1, 'weeks'))
Expand Down

0 comments on commit a76713d

Please sign in to comment.