diff --git a/test/e2e/support/modules/__tests__/minus.test.mjs b/test/e2e/support/modules/__tests__/minus.test.mjs new file mode 100644 index 000000000..1d79390fc --- /dev/null +++ b/test/e2e/support/modules/__tests__/minus.test.mjs @@ -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) + }) +}) diff --git a/test/e2e/support/modules/test.js b/test/e2e/support/modules/__tests__/plus.test.js similarity index 83% rename from test/e2e/support/modules/test.js rename to test/e2e/support/modules/__tests__/plus.test.js index e2883be26..291d93491 100644 --- a/test/e2e/support/modules/test.js +++ b/test/e2e/support/modules/__tests__/plus.test.js @@ -1,4 +1,5 @@ -/* globals plus */ +import { plus } from '../plus.js' + describe('plus', function () { it('should pass', function () { expect(true).toBe(true) diff --git a/test/e2e/support/modules/minus.mjs b/test/e2e/support/modules/minus.mjs index 06db0d5a0..811152cc9 100644 --- a/test/e2e/support/modules/minus.mjs +++ b/test/e2e/support/modules/minus.mjs @@ -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) - }) -}) - diff --git a/test/e2e/support/modules/plus.js b/test/e2e/support/modules/plus.js index d7fd9e84e..7699b6298 100644 --- a/test/e2e/support/modules/plus.js +++ b/test/e2e/support/modules/plus.js @@ -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 }