Skip to content

Commit ab8aa53

Browse files
committed
Fix broken tests
1 parent b94d15d commit ab8aa53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/collections/tenants/integration.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('Testing of the collection.tenants methods', () => {
2626
.then(() =>
2727
collection.tenants.create([
2828
{ name: 'hot', activityStatus: 'HOT' },
29-
{ name: 'cold-old', activityStatus: 'COLD' },
29+
{ name: 'cold', activityStatus: 'COLD' },
3030
{ name: 'cold-new', activityStatus: 'COLD' },
3131
{ name: 'remove-me', activityStatus: 'HOT' },
3232
])
@@ -69,7 +69,7 @@ describe('Testing of the collection.tenants methods', () => {
6969
});
7070

7171
it('should be able to update a tenant with old nomenclature', async () => {
72-
const result = await collection.tenants.update([{ name: 'cold-old', activityStatus: 'HOT' }]);
72+
const result = await collection.tenants.update([{ name: 'cold', activityStatus: 'HOT' }]);
7373
expect(result.length).toBe(1);
7474
expect(result[0].name).toBe('cold');
7575
expect(result[0].activityStatus).toBe('HOT');
@@ -78,7 +78,7 @@ describe('Testing of the collection.tenants methods', () => {
7878
it('should be able to update a tenant with new nomenclature', async () => {
7979
const result = await collection.tenants.update([{ name: 'cold-new', activityStatus: 'ACTIVE' }]);
8080
expect(result.length).toBe(1);
81-
expect(result[0].name).toBe('cold');
81+
expect(result[0].name).toBe('cold-new');
8282
expect(result[0].activityStatus).toBe('HOT');
8383
});
8484

0 commit comments

Comments
 (0)