All files / src/utility build-node-url.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13            522x   522x     25x  
interface NodeParameters {
	readonly id: string;
	readonly type_id: string;
}
 
function buildNodeUrl(hostname: string, parameters: NodeParameters): string {
	const { type_id, id } = parameters;
 
	return `${hostname}/${type_id}/${id}`;
}
 
export default buildNodeUrl;