ng-sortablejs
Version:
34 lines (30 loc) • 836 B
text/typescript
import {Component} from '@angular/core';
import { TestBed, waitForAsync } from '@angular/core/testing';
import {SortablejsModule} from './sortablejs.module';
describe('SortablejsDirective', () => {
({
template: `
<div [sortablejs]="items">
<div *ngFor="let item of items">{{item}}</div>
</div>
`,
})
class TestComponent1 {
items = [1, 2, 3, 4, 5];
}
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [
TestComponent1,
],
imports: [
SortablejsModule,
],
}).compileComponents();
}));
it('should create', () => {
const fixture = TestBed.createComponent(TestComponent1);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
});
});