Skip to content

Commit

Permalink
moar covering
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-akamai committed Jan 29, 2024
1 parent 481408a commit bf841f3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/manager/src/features/PlacementGroups/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getPlacementGroupLinodeCount } from './utils';
import { affinityTypeOptions, getPlacementGroupLinodeCount } from './utils';

describe('getPlacementGroupLinodeCount', () => {
it('returns the length of the linode_ids array', () => {
Expand All @@ -9,3 +9,16 @@ describe('getPlacementGroupLinodeCount', () => {
).toBe(3);
});
});

describe('affinityTypeOptions', () => {
it('returns an array of objects with label and value properties', () => {
expect(affinityTypeOptions).toEqual(
expect.arrayContaining([
expect.objectContaining({
label: expect.any(String),
value: expect.any(String),
}),
])
);
});
});

0 comments on commit bf841f3

Please sign in to comment.