mardi 3 mai 2016

what api is this test written in?

code snippet:

  describe('GetList', () => {
    it('should respond with 200 Success', function* () {
      let res = yield api
        .get(apiPath)
        .set({ })
        .expect(200)
        .endAsync();

      res.body.forEach((item) => {
        item.should.have.property('appName');
        item.should.have.property('appDomain');
      });

I need to write tests in the framework in which the above code is written. if you can hint what framework it is, maybe I can read api docs and write one myself. what I have to do is write a test that compares two arrays returned from api calls. from npm settings it seems it use mocha and istanbul as testing framework.

Aucun commentaire:

Enregistrer un commentaire