mirror of
https://github.com/zhigang1992/favicongrabber.com.git
synced 2026-04-29 18:14:53 +08:00
Add test for checking to remove whitespace
This commit is contained in:
7
assets/js/utils/extract-domain.spec.js
Normal file
7
assets/js/utils/extract-domain.spec.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const extractDomain = require('./extract-domain');
|
||||
|
||||
const EXAMPLE_COM = 'example.com';
|
||||
|
||||
it('remove whitespace', () => {
|
||||
expect(extractDomain(` ${EXAMPLE_COM} `)).toEqual(EXAMPLE_COM);
|
||||
});
|
||||
Reference in New Issue
Block a user