npm.io
9.5.0 • Published 4 years ago

@kentico/kontent-core

Licence
MIT
Version
9.5.0
Deps
1
Size
1.6 MB
Vulns
21
Weekly
0
Stars
4
DeprecatedThis package is deprecated

npm version Build & Test CircleCI npm Known Vulnerabilities GitHub license

Core package

This package contains core functionality used by dependant Kentico Kontent sdks such as Delivery or Content Management.

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 '@kentico/kontent-core';

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

Keywords