Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.
/ arc-mock Public archive

Generates data for ARC demo pages and tests

Notifications You must be signed in to change notification settings

arc-archive/arc-mock

Repository files navigation

ArcMock

Generates data for ARC demo pages and tests scenarios.

Published on NPM

tests

Note API surface changed in version 4.x.

Usage

Installation

npm install --save @advanced-rest-client/arc-mock

In a test scenario

import { assert } from '@open-wc/testing';
import { ArcMock } from '@advanced-rest-client/arc-mock';

describe('Action', () => {
  before(async () => {
    const generator = new ArcMock();
    await generator.store.insertSavedIfNotExists();
  });

  it('has request data', () => {
    // ...
  });
});

Development

git clone https://github.com/advanced-rest-client/arc-mock
cd arc-mock
npm install

Running the tests

npm test