All files UserUri.js

100% Statements 4/4
100% Branches 2/2
100% Functions 1/1
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14              517x 514x 514x 514x      
import {
    getPortByParsedUri
} from './utils.js';
import Uri from './Uri.js';
 
export default class UserUri extends Uri {
    constructor (rawUri, contextOptions) {
        super(rawUri);
        const parsedPort = getPortByParsedUri(this._value.parsedUri, contextOptions);
        this._value.parsedUri.port = parsedPort;
        this._value.splittedUri.port = parsedPort.toString() || null;
    }
}