Commit 4cf9138 for jssip.net
commit 4cf9138d8a9eb96843cbe74a81edb42211e1a069
Author: José Luis Millán <jmillan@aliax.net>
Date: Fri Jan 9 17:10:34 2026 +0100
WIP tests
diff --git a/gulpfile.js b/gulpfile.js
index 0ca9dec..903254d 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -17,7 +17,6 @@ gulp.task('test', function()
{
const src = [
'test/test-parser.js',
- 'test/test-properties.js',
'test/test-UA-no-WebRTC.js'
];
diff --git a/npm-scripts.js b/npm-scripts.js
index cf65c6d..1e6eb7b 100644
--- a/npm-scripts.js
+++ b/npm-scripts.js
@@ -64,6 +64,7 @@ function test()
executeCmd('jest test/test-classes.js');
executeCmd('jest test/test-digestAuthentication.js');
executeCmd('jest test/test-normalizeTarget.js');
+ executeCmd('jest test/test-properties.js');
executeCmd('gulp test');
// executeCmd(jest);
diff --git a/test/test-properties.js b/test/test-properties.js
index 4d7e29d..a9521b3 100644
--- a/test/test-properties.js
+++ b/test/test-properties.js
@@ -3,18 +3,12 @@ const JsSIP = require('../');
const pkg = require('../package.json');
-module.exports = {
-
- 'name' : function(test)
- {
- test.equal(JsSIP.name, pkg.title);
- test.done();
- },
-
- 'version' : function(test)
- {
- test.equal(JsSIP.version, pkg.version);
- test.done();
- }
-
-};
+describe('Properties', () => {
+ test('should have a name property', () => {
+ expect(JsSIP.name).toEqual(pkg.title);
+ });
+
+ test('should have a version property', () => {
+ expect(JsSIP.version).toEqual(pkg.version);
+ });
+});