Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Exitare committed Jan 13, 2025
1 parent b87eb96 commit 9e410e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { Component, ViewChild } from '@angular/core';
import { TestBed } from '@angular/core/testing';

import { PageObject } from '@keira/shared/test-utils';
import { TopBarComponent } from './top-bar.component';
import { describe } from 'node:test';

describe(TopBarComponent.name, () => {
@Component({
template: ` <keira-top-bar [selected]="selected" [selectedName]="selectedName" [isNew]="isNew" /> `,
template: ` <keira-top-bar [selected]="selected" [selectedName]="selectedName" [isNew]="isNew" [customScssClass]="customScssClass" /> `,
standalone: true,
imports: [TopBarComponent],
})
Expand Down Expand Up @@ -57,6 +55,7 @@ describe(TopBarComponent.name, () => {
describe('when there is a custom scss class', () => {
it('should correctly show the custom scss class', () => {
const { host, page } = setup();
host.selected = '1234'; // Ensure selected is truthy
host.customScssClass = 'item-quality-q6';

page.detectChanges();
Expand All @@ -68,6 +67,7 @@ describe(TopBarComponent.name, () => {
describe('when there is no custom scss class', () => {
it('should correctly use the default scss class', () => {
const { host, page } = setup();
host.selected = '1234'; // Ensure selected is truthy
host.customScssClass = undefined; // Falsy value

page.detectChanges();
Expand Down

0 comments on commit 9e410e9

Please sign in to comment.