From 29c2b7639cfcdd65925b887a5a4f534e9de49fc0 Mon Sep 17 00:00:00 2001 From: Jochen Berger Date: Mon, 29 May 2017 11:23:07 +0200 Subject: [PATCH] remove pointless tests --- test/Async-test.js | 79 ---------------------------------------------- 1 file changed, 79 deletions(-) diff --git a/test/Async-test.js b/test/Async-test.js index 8742e315ff..ec4e188e1e 100644 --- a/test/Async-test.js +++ b/test/Async-test.js @@ -262,85 +262,6 @@ describe('Async', () => { }); }); - describe('with ignoreAccents', () => { - it('calls loadOptions with unchanged text', () => { - createControl({ - ignoreAccents: true, - ignoreCase: false - }); - typeSearchText('TeSt'); - expect(loadOptions, 'was called with', 'TeSt'); - }); - - it('strips accents before calling loadOptions when enabled', () => { - createControl({ - ignoreAccents: true, - ignoreCase: false - }); - typeSearchText('Gedünstmaßig'); - // This should really be Gedunstmassig: ß -> ss - expect(loadOptions, 'was called with', 'Gedunstmasig'); - }); - - it('does not strip accents before calling loadOptions when diabled', () => { - createControl({ - ignoreAccents: false, - ignoreCase: false - }); - typeSearchText('Gedünstmaßig'); - expect(loadOptions, 'was called with', 'Gedünstmaßig'); - }); - }); - - describe('with ignore case', () => { - it('converts everything to lowercase when enabled', () => { - createControl({ - ignoreAccents: false, - ignoreCase: true - }); - typeSearchText('TeSt'); - expect(loadOptions, 'was called with', 'test'); - }); - - it('converts accents to lowercase when enabled', () => { - createControl({ - ignoreAccents: false, - ignoreCase: true - }); - typeSearchText('WÄRE'); - expect(loadOptions, 'was called with', 'wäre'); - }); - - it('does not convert text to lowercase when disabled', () => { - createControl({ - ignoreAccents: false, - ignoreCase: false - }); - typeSearchText('WÄRE'); - expect(loadOptions, 'was called with', 'WÄRE'); - }); - }); - - describe('with ignore case and ignore accents', () => { - it('converts everything to lowercase', () => { - createControl({ - ignoreAccents: true, - ignoreCase: true - }); - typeSearchText('TeSt'); - expect(loadOptions, 'was called with', 'test'); - }); - - it('removes accents and converts to lowercase', () => { - createControl({ - ignoreAccents: true, - ignoreCase: true - }); - typeSearchText('WÄRE'); - expect(loadOptions, 'was called with', 'ware'); - }); - }); - describe('noResultsText', () => { beforeEach(() => {