• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2// This tests that the internal flags in URL objects are consistent, as manifest
3// through assert libraries.
4// See https://github.com/nodejs/node/issues/24211
5
6// Tests below are not from WPT.
7
8require('../common');
9const assert = require('assert');
10
11assert.deepStrictEqual(
12  new URL('./foo', 'https://example.com/'),
13  new URL('https://example.com/foo')
14);
15assert.deepStrictEqual(
16  new URL('./foo', 'https://user:pass@example.com/'),
17  new URL('https://user:pass@example.com/foo')
18);
19