Function mockTimestamp

  • Set mock for timestamp.

    Example

    test('mocked timestamp', () => {
    const timestamp: u64 = 123;
    mockTimestamp(timestamp);
    const res = timestamp();
    expect(res).toBe(timestamp);
    });

    Parameters

    • timestamp: number

      The timestamp to set

    Returns void

Generated using TypeDoc