drachtio-srf 4.4.62 → 4.4.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dialog.js +1 -1
- package/package.json +1 -1
- package/test/parser.js +8 -0
- package/test/unit-tests/parser.js +6 -0
package/lib/dialog.js
CHANGED
package/package.json
CHANGED
package/test/parser.js
ADDED
|
@@ -2,10 +2,16 @@ require('assert');
|
|
|
2
2
|
require('mocha');
|
|
3
3
|
require('should');
|
|
4
4
|
|
|
5
|
+
const assert = require('assert');
|
|
5
6
|
const examples = require('sip-message-examples');
|
|
6
7
|
const SipMessage = require('../../lib/sip-parser/message');
|
|
7
8
|
const parser = require('../../lib/sip-parser/parser');
|
|
8
9
|
const parseUri = parser.parseUri;
|
|
10
|
+
const Srf = require('../..');
|
|
11
|
+
assert.ok(typeof parseUri === 'function');
|
|
12
|
+
assert.ok(typeof Srf.parseUri === 'function');
|
|
13
|
+
console.log(`typeof parseUri is ${typeof parseUri}`);
|
|
14
|
+
console.log(`typeof Srf.parseUri is ${typeof Srf.parseUri}`);
|
|
9
15
|
|
|
10
16
|
describe('Parser', function () {
|
|
11
17
|
it('should provide headers as string values', function () {
|