-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugins): introduce plugin name (#767)
- Loading branch information
1 parent
b41e823
commit d50bd4b
Showing
11 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...es/autocomplete-plugin-algolia-insights/src/__tests__/createAlgoliaInsightsPlugin.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
import insightsClient from 'search-insights'; | ||
|
||
import { createAlgoliaInsightsPlugin } from '../createAlgoliaInsightsPlugin'; | ||
|
||
describe('createAlgoliaInsightsPlugin', () => { | ||
test('has a name', () => { | ||
const plugin = createAlgoliaInsightsPlugin({ insightsClient }); | ||
|
||
expect(plugin.name).toBe('aa.algoliaInsightsPlugin'); | ||
}); | ||
|
||
test.todo('tests'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
.../autocomplete-plugin-query-suggestions/src/__tests__/createQuerySuggestionsPlugin.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...plete-plugin-recent-searches/src/__tests__/createLocalStorageRecentSearchesPlugin.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { createLocalStorageRecentSearchesPlugin } from '../createLocalStorageRecentSearchesPlugin'; | ||
|
||
describe('createLocalStorageRecentSearchesPlugin', () => { | ||
test('has a name', () => { | ||
const plugin = createLocalStorageRecentSearchesPlugin({ | ||
key: 'autocomplete', | ||
}); | ||
|
||
expect(plugin.name).toBe('aa.localStorageRecentSearchesPlugin'); | ||
}); | ||
}); |
12 changes: 12 additions & 0 deletions
12
...ages/autocomplete-plugin-recent-searches/src/__tests__/createRecentSearchesPlugin.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters