@advanced-rest-client/arc-mock
v6.0.1
Published
Mocking library for Advanced REST Client
Downloads
28
Keywords
Readme
ArcMock
Generates data for ARC demo pages and tests scenarios.
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