Skip to content

Commit 769e970

Browse files
author
bjarneo
committed
update test
1 parent c81921f commit 769e970

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ const urls = [
1616
const expected = [ 'npmjs.com', 'example.com', 'npmjs.com', 'example.org' ];
1717

1818
describe('extract domain', () => {
19-
it('should extract given domain from string', () => {
19+
it('should extract given domain from url', () => {
2020
assert.equal(extractDomain(urls[0]), expected[0]);
2121
assert.equal(extractDomain(urls[1]), expected[1]);
2222
assert.equal(extractDomain(urls[7]), expected[0]);
2323
});
2424

25-
it('should extract given domain from an array of strings', () => {
25+
it('should extract given domain from an array of urls', () => {
2626
const domains = extractDomain(urls);
2727

2828
domains.map(domain => assert(expected.indexOf(domain) > -1));
2929
});
3030

31-
it('should return empty string if it is not a domain', () => {
31+
it('should return empty string if it is not a url', () => {
3232
assert.equal(extractDomain('/i.am/just.astring//7test'), '');
3333
});
3434

0 commit comments

Comments
 (0)