mirror of https://github.com/abpframework/abp.git
3 changed files with 21 additions and 4 deletions
@ -0,0 +1,15 @@ |
|||
import { createServiceFactory, SpectatorService } from '@ngneat/spectator'; |
|||
import { DomInsertionService } from '../services'; |
|||
import { CONTENT_STRATEGY } from '../strategies'; |
|||
|
|||
describe('DomInsertionService', () => { |
|||
let spectator: SpectatorService<DomInsertionService>; |
|||
const createService = createServiceFactory(DomInsertionService); |
|||
|
|||
beforeEach(() => (spectator = createService())); |
|||
|
|||
it('should be insert an element', () => { |
|||
spectator.service.insertElement(CONTENT_STRATEGY.AppendStyleToHead('.test {}')); |
|||
expect(spectator.service.inserted.has(1437348290)).toBe(true); |
|||
}); |
|||
}); |
|||
Loading…
Reference in new issue