Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,6 @@ export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderCon
expect(docTypes).to.eql(['animal', 'technical']);
});

it('returns entries in a consistent order', async () => {
const entries = await recall('whales');

expect(entries.map(({ id, esScore }) => `${formatScore(esScore!)} - ${id}`)).to.eql([
'high - animal_whale_migration_patterns',
'low - animal_elephants_social_structure',
'low - technical_api_gateway_timeouts',
'low - technical_cache_misses_thirdparty_api',
'low - animal_cheetah_life_speed',
'low - technical_db_outage_slow_queries',
'low - animal_giraffe_habitat_feeding',
'low - animal_penguin_antarctic_adaptations',
]);
});

it('returns the "Cheetah" entry from search connectors as the top result', async () => {
const entries = await recall('Cheetah');
const { text, esScore } = first(entries)!;
Expand Down