Skip to content

Commit 770d560

Browse files
committed
Add code-snippet test
1 parent 7c71d17 commit 770d560

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
2+
import { ComponentFixture, TestBed } from "@angular/core/testing";
3+
import { StaticIconModule } from "../icon/static-icon.module";
4+
5+
import { CodeSnippet } from "./code-snippet.component";
6+
7+
describe("CodeSnippet", () => {
8+
let component: CodeSnippet;
9+
let fixture: ComponentFixture<CodeSnippet>;
10+
11+
beforeEach(() => {
12+
TestBed.configureTestingModule({
13+
declarations: [CodeSnippet],
14+
imports: [BrowserAnimationsModule, StaticIconModule],
15+
providers: []
16+
});
17+
18+
fixture = TestBed.createComponent(CodeSnippet);
19+
component = fixture.componentInstance;
20+
});
21+
22+
it("should work", () => {
23+
expect(component instanceof CodeSnippet).toBe(true);
24+
});
25+
});

0 commit comments

Comments
 (0)