generated from RedHatInsights/frontend-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GCE shows vCPU in the description of the machine, not the vcpus. Refs: HMS-2301
- Loading branch information
1 parent
d1cbba3
commit 1c11b5b
Showing
2 changed files
with
11 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
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,9 @@ | ||
import { parseQuery } from './querySearch'; | ||
|
||
describe('parseQuery', () => { | ||
test('replaces vcpu by vcpus', async () => { | ||
expect(parseQuery('vcpu > 2')).toBe('types[vcpus > 2]'); | ||
expect(parseQuery('vcpu> 2')).toBe('types[vcpus> 2]'); | ||
expect(parseQuery('vCPU > 2')).toBe('types[vcpus > 2]'); | ||
}); | ||
}); |