1.6.0 • Published 9 months ago
@pubtech-ai/testing v1.6.0
@pubtech-ai/testing
Testing tools to generate randomized input/output
Installation
npm
npm install @pubtech-ai/testing --save-dev
yarn
yarn add -D @pubtech-ai/testing
Utilities
Generate random TCModel with GVL
import {TCModelFactory} from '@pubtech-ai/testing';
const tcModel = TCModelFactory.withGVL();
Generate random TC string
import {TCString} from '@pubtech-ai/core';
import {TCModelFactory} from '@pubtech-ai/testing';
console.log(TCString.encode(TCModelFactory.noGVL()));
// ... random tc string
Add publisher restrictions
import {TCModelFactory} from '@pubtech-ai/testing';
let tcModel = TCModelFactory.withGVL();
tcModel = TCModelFactory.addPublisherRestrictions(tcModel);
// now has random publisher restrictions
Get latest GVL
import {GVLFactory} from '@pubtech-ai/testing';
import {GVL} from '@pubtech-ai/core';
const gvl = GVLFactory.getLatest();
Get version of GVL
import {GVLFactory} from '@pubtech-ai/testing';
import {GVL} from '@pubtech-ai/core';
const gvl = GVLFactory.getVersion(10);
2.9.0
9 months ago
2.8.1
2 years ago
2.8.0
2 years ago
2.7.0
2 years ago
2.7.1
2 years ago
2.5.0
2 years ago
2.6.0
2 years ago
2.4.0
2 years ago
2.3.0
2 years ago
2.2.0
2 years ago
2.1.1
2 years ago
2.1.0
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.7.2
2 years ago
1.7.1
2 years ago
1.7.0
2 years ago
1.6.6
2 years ago
1.6.5
2 years ago
1.6.4
2 years ago
1.6.3
2 years ago
1.6.2
2 years ago
1.6.1
2 years ago
1.6.0
2 years ago