Skip to content

Commit

Permalink
feat(core): remove 'N/A' if no server group sequence exists (#4973)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeach authored and anotherchrisberry committed Mar 8, 2018
1 parent fab805f commit 5a7eed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/scripts/modules/core/src/naming/naming.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('namingService', function () {
expect(this.namingService.getSequence(0)).toBe('v000');
expect(this.namingService.getSequence(10)).toBe('v010');
expect(this.namingService.getSequence(100)).toBe('v100');
expect(this.namingService.getSequence(null)).toBe('N/A');
expect(this.namingService.getSequence(undefined)).toBe('N/A');
expect(this.namingService.getSequence(null)).toBe(null);
expect(this.namingService.getSequence(undefined)).toBe(null);
});
});
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/naming/naming.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class NamingService {

public getSequence(monikerSequence: number): string {
if (isNil(monikerSequence)) {
return 'N/A';
return null;
} else {
return `v${padStart(monikerSequence.toString(), 3, '0')}`;
}
Expand Down

0 comments on commit 5a7eed5

Please sign in to comment.