Skip to content

Commit b33607d

Browse files
authored
move tests to src folder (#957)
1 parent bdfafb4 commit b33607d

12 files changed

Lines changed: 10 additions & 11 deletions

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
testRegex: 'test/test-.*\\.js',
2+
testRegex: 'src/test/test-.*\\.js',
33
};

npm-scripts.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const ESLINT_PATHS = [
1414
// "jest.config.mjs",
1515
'npm-scripts.mjs',
1616
'src',
17-
'test',
1817
].join(' ');
1918

2019
// Paths for ESLint to ignore. Converted to string argument for convenience.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require('./include/common');
44
const testUA = require('./include/testUA');
5-
const JsSIP = require('../');
5+
const JsSIP = require('../..');
66

77
describe('UA No WebRTC', () => {
88
test('UA wrong configuration', () => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require('./include/common');
2-
const JsSIP = require('../');
2+
const JsSIP = require('../..');
33
const LoopSocket = require('./include/loopSocket');
44

55
describe('subscriber/notifier communication', () => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require('./include/common');
2-
const JsSIP = require('../');
2+
const JsSIP = require('../..');
33

44
describe('URI Tests', () => {
55
test('new URI', () => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require('./include/common');
2-
const DigestAuthentication = require('../src/DigestAuthentication.js');
2+
const DigestAuthentication = require('../DigestAuthentication.js');
33

44
// Results of this tests originally obtained from RFC 2617 and:
55
// 'https://pernau.at/kd/sipdigest.php'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require('./include/common');
2-
const JsSIP = require('../');
2+
const JsSIP = require('../..');
33

44
describe('normalizeTarget', () => {
55
test('valid targets', () => {

0 commit comments

Comments
 (0)