mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-28 15:05:25 +00:00
larry babby and threejs for glsl
This commit is contained in:
37
webGl/my-threejs-test/node_modules/@parcel/utils/test/urlJoin.test.js
generated
vendored
Normal file
37
webGl/my-threejs-test/node_modules/@parcel/utils/test/urlJoin.test.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// @flow strict-local
|
||||
|
||||
import assert from 'assert';
|
||||
import urlJoin from '../src/urlJoin';
|
||||
|
||||
describe('urlJoin', () => {
|
||||
it('Should join two paths', () => {
|
||||
let joinedUrl = urlJoin('/', './image.jpeg?test=test');
|
||||
assert.equal(joinedUrl, '/image.jpeg?test=test');
|
||||
});
|
||||
|
||||
it('Should join two paths with longer publicUrl', () => {
|
||||
let joinedUrl = urlJoin('/static', './image.jpeg?test=test');
|
||||
assert.equal(joinedUrl, '/static/image.jpeg?test=test');
|
||||
});
|
||||
|
||||
it('Should join two paths with longer publicUrl', () => {
|
||||
let joinedUrl = urlJoin('/static', 'image.jpeg?test=test');
|
||||
assert.equal(joinedUrl, '/static/image.jpeg?test=test');
|
||||
});
|
||||
|
||||
it('Should turn windows path into posix', () => {
|
||||
let joinedUrl = urlJoin('/static', '.\\image.jpeg?test=test');
|
||||
assert.equal(joinedUrl, '/static/image.jpeg?test=test');
|
||||
});
|
||||
|
||||
it('should support paths with colons', () => {
|
||||
let joinedUrl = urlJoin('/static', 'a:b:c.html');
|
||||
assert.equal(joinedUrl, '/static/a:b:c.html');
|
||||
|
||||
joinedUrl = urlJoin('/static', '/a:b:c.html');
|
||||
assert.equal(joinedUrl, '/static/a:b:c.html');
|
||||
|
||||
joinedUrl = urlJoin('/static', './a:b:c.html');
|
||||
assert.equal(joinedUrl, '/static/a:b:c.html');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user