forked from karma-runner/karma
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(modules): ensure relative paths work correctly
- Loading branch information
1 parent
21e26e2
commit ce5334a
Showing
4 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
}) | ||
}) |
3 changes: 2 additions & 1 deletion
3
test/e2e/support/modules/test.js → ...2e/support/modules/__tests__/plus.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
}) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |