I am trying to test the sequence of create/delete for as REST-service. The example below always passes in the IDE, but gives an error in the Karma/Jasmine debugger.
"xpect' was used when there was no current spec,
this could be because an asynchronous test timed out"
Each test alone runs ok.
it('should return the number of deleted items after creation', done => {
const ex1 = sgformsService.getOrCreate('Endoskopie', 9999, '2019-03-20')
const ex2 = sgformsService.deleteByParameter('Endoskopie', 9999, '2019-03-20')
const ex = ex2.pipe(concat(ex1)).subscribe(
(val: number) => {
expect(val).toEqual(7)
done()
})
}
)
Aucun commentaire:
Enregistrer un commentaire