Skip to content

Commit

Permalink
test(modules): ensure relative paths work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
appsforartists committed Nov 30, 2017
1 parent 21e26e2 commit ce5334a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
11 changes: 11 additions & 0 deletions test/e2e/support/modules/__tests__/minus.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { minus } from '../minus.mjs'

describe('minus', function () {
it('should pass', function () {
expect(true).toBe(true)
})

it('should work', function () {
expect(minus(3, 2)).toBe(1)
})
})
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* globals plus */
import { plus } from '../plus.js'

describe('plus', function () {
it('should pass', function () {
expect(true).toBe(true)
Expand Down
13 changes: 1 addition & 12 deletions test/e2e/support/modules/minus.mjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
// Some code under test
function minus (a, b) {
export function minus (a, b) {
return a - b
}

describe('minus', function () {
it('should pass', function () {
expect(true).toBe(true)
})

it('should work', function () {
expect(minus(3, 2)).toBe(1)
})
})

3 changes: 1 addition & 2 deletions test/e2e/support/modules/plus.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable no-unused-vars */
// Some code under test
function plus (a, b) {
export function plus (a, b) {
return a + b
}

0 comments on commit ce5334a

Please sign in to comment.