@advanced-rest-client/arc-data-generator

Generates data for ARC demo pages and tests

Usage no npm install needed!

<script type="module">
  import advancedRestClientArcDataGenerator from 'https://cdn.skypack.dev/@advanced-rest-client/arc-data-generator';
</script>

README

arc-data-generator

Generates data for ARC demo pages and tests

Published on NPM

tests

Usage

Installation

npm install --save @advanced-rest-client/arc-data-generator

In a test scenario

import { assert } from '@open-wc/testing';
import { DataGenerator } from '@advanced-rest-client/arc-data-generator/arc-data-generator.js';

describe('Action', () => {
  before(async () => {
    await DataGenerator.insertSavedIfNotExists();
  });

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

Development

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

Running the tests

npm test