mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
Fixed oembed test
refs e04f55cce3
- added `nock.cleanAll()` so that there is no inter-test dependencies
- the failing test was successfully passing previously due to mocha's retry behaviour eventually exhausting nock request handlers that were set up in other tests and intended not to be called
This commit is contained in:
parent
b2798fef96
commit
62c72cb58b
@ -28,6 +28,7 @@ describe('Oembed API', function () {
|
||||
|
||||
afterEach(function () {
|
||||
sinon.restore();
|
||||
nock.cleanAll();
|
||||
});
|
||||
|
||||
it('can fetch an embed', function (done) {
|
||||
|
Loading…
Reference in New Issue
Block a user