This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import nock from 'nock'; | |
| import { expect, request } from 'chai'; | |
| import api from '../../src/server'; | |
| import Article from '../../src/models/article'; | |
| import config from '../../src/config'; | |
| import { dropDBs, loadFixture, withLogin } from '../utils.js'; | |
| describe('Article controller', () => { | |
| let article; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var flow = webdriver.promise.controlFlow(); | |
| var finish = function (done) { | |
| driver.quit().then(function () { | |
| done(); | |
| }); | |
| }; | |
| var error = function (e) { | |
| driver.quit().then(function () { |