mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-02-21 07:15:20 +09:00
spaces / lint
This commit is contained in:
parent
7e5baed63a
commit
5094611ade
@ -17,23 +17,23 @@ describe('UtilityService', () => {
|
|||||||
|
|
||||||
describe('punyHost', () => {
|
describe('punyHost', () => {
|
||||||
test('simple', () => {
|
test('simple', () => {
|
||||||
assert.equal(utilityService.punyHost('http://www.foo.com'),'www.foo.com');
|
assert.equal(utilityService.punyHost('http://www.foo.com'), 'www.foo.com');
|
||||||
});
|
});
|
||||||
test('japanese', () => {
|
test('japanese', () => {
|
||||||
assert.equal(utilityService.punyHost('http://www.新聞.com'),'www.xn--efvv70d.com');
|
assert.equal(utilityService.punyHost('http://www.新聞.com'), 'www.xn--efvv70d.com');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('punyHostPSLDomain', () => {
|
describe('punyHostPSLDomain', () => {
|
||||||
test('simple', () => {
|
test('simple', () => {
|
||||||
assert.equal(utilityService.punyHostPSLDomain('http://www.foo.com'),'foo.com');
|
assert.equal(utilityService.punyHostPSLDomain('http://www.foo.com'), 'foo.com');
|
||||||
});
|
});
|
||||||
test('japanese', () => {
|
test('japanese', () => {
|
||||||
assert.equal(utilityService.punyHostPSLDomain('http://www.新聞.com'),'xn--efvv70d.com');
|
assert.equal(utilityService.punyHostPSLDomain('http://www.新聞.com'), 'xn--efvv70d.com');
|
||||||
});
|
});
|
||||||
test('lower', () => {
|
test('lower', () => {
|
||||||
assert.equal(utilityService.punyHostPSLDomain('http://foo.github.io'),'foo.github.io');
|
assert.equal(utilityService.punyHostPSLDomain('http://foo.github.io'), 'foo.github.io');
|
||||||
assert.equal(utilityService.punyHostPSLDomain('http://foo.bar.github.io'),'bar.github.io');
|
assert.equal(utilityService.punyHostPSLDomain('http://foo.bar.github.io'), 'bar.github.io');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user