Skip to content

Commit

Permalink
[#459] Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fivitti committed Dec 9, 2024
1 parent 34e3228 commit 823d81b
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions webui/src/app/subnets-table/subnets-table.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,24 +204,19 @@ describe('SubnetsTableComponent', () => {
expect(component.hasAssignedMultipleSubnetNames(subnet)).toBeFalse()

// Multiple local subnets with the same name.
subnet = { localSubnets: [
{ userContext: { 'subnet-name': 'foo' } },
{ userContext: { 'subnet-name': 'foo' } }
]}
subnet = {
localSubnets: [{ userContext: { 'subnet-name': 'foo' } }, { userContext: { 'subnet-name': 'foo' } }],
}
expect(component.hasAssignedMultipleSubnetNames(subnet)).toBeFalse()

// Multiple subnets with different names.
subnet = { localSubnets: [
{ userContext: { 'subnet-name': 'foo' } },
{ userContext: { 'subnet-name': 'bar' } }
]}
subnet = {
localSubnets: [{ userContext: { 'subnet-name': 'foo' } }, { userContext: { 'subnet-name': 'bar' } }],
}
expect(component.hasAssignedMultipleSubnetNames(subnet)).toBeTrue()

// Multiple subnets. One with a name, one without.
subnet = { localSubnets: [
{ userContext: { 'subnet-name': 'foo' } },
{ userContext: {} }
]}
subnet = { localSubnets: [{ userContext: { 'subnet-name': 'foo' } }, { userContext: {} }] }
expect(component.hasAssignedMultipleSubnetNames(subnet)).toBeTrue()
})
})

0 comments on commit 823d81b

Please sign in to comment.