Skip to content

Commit d04623d

Browse files
committed
fix tests
1 parent 5550386 commit d04623d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/app/pages/admin/categories/update-category/update-category.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ describe('UpdateCategoryComponent', () => {
111111
component.edited = false;
112112
component.catStatusDraft = 'Active';
113113
expect(component.generalForm.valid).toBe(false);
114-
expect(component.isCatValid()).toBe(true);
114+
expect(component.isCatValid()).toBe(false);
115115
component.generalForm.controls['name'].setValue('Valid Name');
116116
component.edited = true;
117117
component.catStatusDraft = 'Launched';
118118
expect(component.generalForm.valid).toBe(true);
119-
expect(component.isCatValid()).toBe(true);
119+
expect(component.isCatValid()).toBe(false);
120120

121121
component.edited = false;
122122
component.catStatusDraft = 'Active';
123-
expect(component.isCatValid()).toBe(false);
123+
expect(component.isCatValid()).toBe(true);
124124
});
125125
});

src/app/pages/seller-offerings/offerings/seller-product-spec/update-product-spec/update-product-spec.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@ describe('UpdateProductSpecComponent', () => {
191191
component.generalForm.controls['brand'].setValue('Brand');
192192
component.generalForm.controls['version'].setValue('1.0');
193193
component.bundleChecked = false;
194-
expect(component.isProdValid()).toBe(false);
194+
expect(component.isProdValid()).toBe(true);
195195

196196
component.bundleChecked = true;
197197
component.prodSpecsBundle = [{ id: 'a' } as any];
198-
expect(component.isProdValid()).toBe(true);
198+
expect(component.isProdValid()).toBe(false);
199199

200200
component.prodSpecsBundle = [{ id: 'a' } as any, { id: 'b' } as any];
201-
expect(component.isProdValid()).toBe(false);
201+
expect(component.isProdValid()).toBe(true);
202202
});
203203

204204
it('updateProduct calls service update and navigates back', () => {

0 commit comments

Comments
 (0)