kontent-ai / core-sdk-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm version Build & Test npm Known Vulnerabilities GitHub license

Core package

This package contains core functionality used by dependant Kontent.ai SDKs such as Delivery SDK or Management SDK.

Testing

If you want to inject testing service as an implementation of IHttpService, it is possible to use configurable Test Http Service.

import { TestHttpService } from '@kontent-ai/core-sdk';

const client = new /*(Delivery/Management)*/Client() {
    // ...
    httpService: new TestHttpService({
        fakeResponseJson: json,
        throwError: false
    });
}

About

License:MIT License


Languages

Language:TypeScript 79.6%Language:JavaScript 20.4%