<commit_before>// Copyright Gago Group. All rights reserved.
// Use of this source code is governed a license that can be found in the LICENSE file.
//
// The unit test is generated by sakura-node-ts (https://github.com/DaYeSquad/sakura-node-ts)

import * as supertest from "supertest";
import * as chai from "chai";

describe("Test  Dog harry UP API", () => {

  it("获得所有用户信息", (done: MochaDone) => {
    supertest("https://api.gagogroup.cn/api")
      .get("/products?pid=5")
      .expect((res: supertest.Response) => {
        chai.expect(res["data"]["users"][0]["uid"]).to.equal(1);
        chai.expect(res["data"]["users"][0]["displayName"]).to.equal("linxiaoyi");
        chai.expect(res["data"]["users"][1]["uid"]).to.equal(2);
        chai.expect(res["data"]["users"][1]["displayName"]).to.equal("huangtaihu");
      })
      .expect(200, done);
  });

});<commit_msg>fix: fix the wrong testing<commit_after>// Copyright Gago Group. All rights reserved.
// Use of this source code is governed a license that can be found in the LICENSE file.
//
// The unit test is generated by sakura-node-ts (https://github.com/DaYeSquad/sakura-node-ts)

import * as supertest from "supertest";
import * as chai from "chai";

interface ResDictionary { [id: string]: any; }

describe("Test  Dog harry UP API", () => {

  it("获得所有用户信息", (done: MochaDone) => {
    supertest("https://api.gagogroup.cn/api")
      .get("/products?pid=5")
      .expect((res: supertest.Response & ResDictionary) => {
        chai.expect(res["data"]["users"][0]["uid"]).to.equal(1);
        chai.expect(res["data"]["users"][0]["displayName"]).to.equal("linxiaoyi");
        chai.expect(res["data"]["users"][1]["uid"]).to.equal(2);
        chai.expect(res["data"]["users"][1]["displayName"]).to.equal("huangtaihu");
      })
      .expect(200, done);
  });

});
{'fraction_non_alphanumeric': 0.20699071545603495, 'fraction_numerical': 0.010922992900054615, 'mean_word_length': 3.7584415584415583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3835595', 'n_tokens_mistral': 653, 'n_tokens_neox': 658, 'n_words': 130}