-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d891c7
commit e8b29cb
Showing
8 changed files
with
97 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/app/components/shared/datetime/abstract-datetime.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { AbstractDatetimeComponent } from "./abstract-datetime.component"; | ||
|
||
describe("AbstractDatetimeComponent", () => { | ||
let abstractDatetimeComponent: AbstractDatetimeComponent; | ||
|
||
beforeEach(() => { | ||
abstractDatetimeComponent = new AbstractDatetimeComponentMock(); | ||
}); | ||
|
||
it("should create", () => { | ||
expect(abstractDatetimeComponent).toBeTruthy(); | ||
}); | ||
|
||
it("should have a default prefix of an empty string", () => { | ||
expect(abstractDatetimeComponent.suffix()).toEqual(""); | ||
}); | ||
}); | ||
|
||
class AbstractDatetimeComponentMock extends AbstractDatetimeComponent { | ||
public formattedValue = () => ""; | ||
public tooltipValue = () => ""; | ||
public rawDateTime = () => ""; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.