mirror of
https://github.com/bitwarden/clients.git
synced 2025-12-10 21:05:10 -06:00
fix karma tests
This commit is contained in:
parent
809f9b9cde
commit
9b103f1ff0
@ -9,9 +9,11 @@ module.exports = function(config) {
|
|||||||
|
|
||||||
// list of files / patterns to load in the browser
|
// list of files / patterns to load in the browser
|
||||||
files: [
|
files: [
|
||||||
'node_modules/@bitwarden/jslib/src/abstractions/**/*.ts',
|
'jslib/src/abstractions/**/*.ts',
|
||||||
'node_modules/@bitwarden/jslib/src/enums/**/*.ts',
|
'jslib/src/enums/**/*.ts',
|
||||||
'node_modules/@bitwarden/jslib/src/services/**/*.ts',
|
'jslib/src/models/**/*.ts',
|
||||||
|
'jslib/src/services/**/*.ts',
|
||||||
|
'src/browser/**/*.ts',
|
||||||
'src/services/**/*.ts'
|
'src/services/**/*.ts'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,7 @@ describe('Utils Service', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should handle valid urls', () => {
|
it('should handle valid urls', () => {
|
||||||
|
expect(UtilsService.getHostname('bitwarden.com')).toBe('bitwarden.com');
|
||||||
expect(UtilsService.getHostname('https://bitwarden.com')).toBe('bitwarden.com');
|
expect(UtilsService.getHostname('https://bitwarden.com')).toBe('bitwarden.com');
|
||||||
expect(UtilsService.getHostname('http://bitwarden.com')).toBe('bitwarden.com');
|
expect(UtilsService.getHostname('http://bitwarden.com')).toBe('bitwarden.com');
|
||||||
expect(UtilsService.getHostname('http://vault.bitwarden.com')).toBe('vault.bitwarden.com');
|
expect(UtilsService.getHostname('http://vault.bitwarden.com')).toBe('vault.bitwarden.com');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user