aboutsummaryrefslogtreecommitdiff
path: root/test/shared/settings/Search.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/shared/settings/Search.test.ts')
-rw-r--r--test/shared/settings/Search.test.ts15
1 files changed, 1 insertions, 14 deletions
diff --git a/test/shared/settings/Search.test.ts b/test/shared/settings/Search.test.ts
index 7c9134d..8bd8d89 100644
--- a/test/shared/settings/Search.test.ts
+++ b/test/shared/settings/Search.test.ts
@@ -3,7 +3,7 @@ import { expect } from 'chai';
describe('Search', () => {
it('returns search settings by valid settings', () => {
- let search = Search.fromJSON({
+ const search = Search.fromJSON({
default: 'google',
engines: {
'google': 'https://google.com/search?q={}',
@@ -26,19 +26,6 @@ describe('Search', () => {
});
it('throws a TypeError by invalid settings', () => {
- expect(() => Search.fromJSON(null)).to.throw(TypeError);
- expect(() => Search.fromJSON({})).to.throw(TypeError);
- expect(() => Search.fromJSON([])).to.throw(TypeError);
- expect(() => Search.fromJSON({
- default: 123,
- engines: {}
- })).to.throw(TypeError);
- expect(() => Search.fromJSON({
- default: 'google',
- engines: {
- 'google': 123456,
- }
- })).to.throw(TypeError);
expect(() => Search.fromJSON({
default: 'wikipedia',
engines: {