console#count TypeScript Examples

The following examples show how to use console#count. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.ts    From remix-project with MIT License 6 votes vote down vote up
SearchingInitialState: SearchState = {
    find: '',
    replace: '',
    include: '',
    exclude: '',
    replaceEnabled: false,
    searchResults: [],
    casesensitive: false,
    matchWord: false,
    useRegExp: false,
    replaceWithOutConfirmation: false,
    timeStamp: 0,
    count: 0,
    fileCount: 0,
    maxFiles: 5000,
    maxLines: 5000,
    clipped: false,
    undoBuffer: null,
    currentFile: '',
    workspace: '',
    searching: null,
    run: false,
}
Example #2
Source File: match_v5.test.ts    From riot-api with MIT License 5 votes vote down vote up
describe("E2E", () => {
  describe("Match V5", () => {
    test("getIdsbyPuuid", async () => {
      const rAPI = new RiotAPI(riotAPIKey);

      const resp = await rAPI.matchV5.getIdsbyPuuid({
        cluster: PlatformId.EUROPE,
        puuid:
          "8bJQbDi6uFIgefQA6Y79yxff_1bCHNopb1eHlq3p7Ic2oeXgYTvNnfGahtWyJ6qqAue3uK6wiZmMWQ",
        params: {
          start: 0,
          count: 5,
        },
      });
      expect(resp).toHaveLength(5);
    });

    test("getMatchById", async () => {
      const rAPI = new RiotAPI(riotAPIKey);

      const matchId = "EUW1_5350514472";

      const resp = await rAPI.matchV5.getMatchById({
        cluster: PlatformId.EUROPE,
        matchId,
      });
      expect(resp).toContainAllKeys(["metadata", "info"]);
      expect(resp.info).toContainAllKeys([
        "gameCreation",
        "gameDuration",
        "gameId",
        "gameMode",
        "gameName",
        "gameStartTimestamp",
        "gameType",
        "gameVersion",
        "mapId",
        "participants",
        "platformId",
        "queueId",
        "teams",
        "tournamentCode",
      ]);
      expect(resp.metadata.matchId).toEqual(matchId);
    });

    test("getMatchTimelineById", async () => {
      const rAPI = new RiotAPI(riotAPIKey);

      const matchId = "EUW1_5350514472";

      const resp = await rAPI.matchV5.getMatchTimelineById({
        cluster: PlatformId.EUROPE,
        matchId,
      });
      expect(resp).toContainAllKeys(["metadata", "info"]);
      expect(resp.info).toContainAnyKeys([
        "frameInterval",
        "frames",
        "gameId",
        "participants",
      ]);
      expect(resp.metadata.matchId).toEqual(matchId);
    });
  });
});