fixed notes_spec.js

This commit is contained in:
Phil Hughes 2018-02-02 13:02:00 +00:00
parent 004158066d
commit 663681f719
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F

View file

@ -68,7 +68,7 @@ import timeoutPromise from './helpers/set_timeout_promise_helper';
it('submits an ajax request on tasklist:changed', function(done) {
spyOn(axios, 'patch').and.callFake((url, data) => {
expect(url).toBe(`${gl.TEST_HOST}/frontend-fixtures/merge-requests-project/merge_requests/1.json`);
expect(data.note.note).not.toBe(null);
expect(data.note).not.toBe(null);
done();
return Promise.resolve({ data: {} });