@acrolinx/sdk
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,2 +6,3 @@ import { Addon, AddonId } from './addons'; | ||
import { DocumentDescriptor } from './document-descriptor'; | ||
import { Integration } from './integration'; | ||
export interface CheckRange { | ||
@@ -27,2 +28,3 @@ begin: number; | ||
externalContent?: ExternalContent; | ||
integration?: Integration; | ||
} | ||
@@ -29,0 +31,0 @@ export interface LiveSearchRequest { |
@@ -41,3 +41,3 @@ /* | ||
"functions": 86, | ||
"lines": 93.75, | ||
"lines": 93.70, | ||
} | ||
@@ -44,0 +44,0 @@ }, |
{ | ||
"name": "@acrolinx/sdk", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Acrolinx JavaScript SDK for the Acrolinx API", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -36,2 +36,3 @@ /* | ||
import {DocumentDescriptor} from './document-descriptor'; | ||
import { Integration } from './integration'; | ||
@@ -61,2 +62,3 @@ export interface CheckRange { | ||
externalContent?: ExternalContent; | ||
integration?: Integration; | ||
} | ||
@@ -63,0 +65,0 @@ |
@@ -389,2 +389,18 @@ /* | ||
it('can check with integration field set', async () => { | ||
const text = 'Sample content to test integration field in check request'; | ||
const checkResult = await checkAndWaitForResult({ | ||
content: text, | ||
integration: { | ||
components: [{ | ||
id: 'com.acrolinx.sdk', | ||
name: 'Acrolinx SDK JS', | ||
version: '0.0.1', | ||
category: 'MAIN' | ||
}] | ||
} | ||
}); | ||
expect(checkResult.quality.score).toBeGreaterThan(0); | ||
}, 10000); | ||
it.skip('can cancel check', async () => { | ||
@@ -391,0 +407,0 @@ const check = await createDummyCheck(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
581103
178
11227