mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
fix karma tests
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user