@datagrok/api-tests
Advanced tools
Comparing version 1.7.13 to 1.7.15-rc.abc
{ | ||
"name": "@datagrok/api-tests", | ||
"friendlyName": "API Tests", | ||
"version": "1.7.13", | ||
"version": "1.7.15-rc.abc", | ||
"author": { | ||
@@ -13,3 +13,3 @@ "name": "Anna Muzychyna", | ||
"type": "git", | ||
"url": "https://github.com/datagrok-ai/public.git", | ||
"url": "git+https://github.com/datagrok-ai/public.git", | ||
"directory": "packages/ApiTests" | ||
@@ -19,4 +19,5 @@ }, | ||
"@datagrok-libraries/utils": "^4.1.41", | ||
"@datagrok/api-tests": "^1.7.15-rc.test2", | ||
"cash-dom": "^8.1.1", | ||
"datagrok-api": "^1.18.0", | ||
"datagrok-api": "../../js-api", | ||
"dayjs": "^1.11.10", | ||
@@ -23,0 +24,0 @@ "rxjs": "^6.6.7", |
@@ -39,2 +39,12 @@ import * as grok from 'datagrok-api/grok'; | ||
test('Create a calculated column with async formula', async () => { | ||
try { | ||
const column = await df.columns.addNewCalculated('new', 'ApiTests:testIntAsync(${x})'); | ||
expect(df.columns.contains(column.name), true); | ||
expect(column.get(0), 11); | ||
} finally { | ||
df.columns.remove('new'); | ||
} | ||
}); | ||
test('Add new column dialog', () => new Promise(async (resolve, reject) => { | ||
@@ -41,0 +51,0 @@ if ((await grok.dapi.packages.filter('PowerPack').list()).length > 0) |
@@ -33,2 +33,3 @@ import * as DG from 'datagrok-api/dg'; | ||
import './dapi/tables'; | ||
import './dapi/sticky_meta'; | ||
import './dapi/user-data-storage'; | ||
@@ -35,0 +36,0 @@ import './dapi/users'; |
@@ -82,1 +82,8 @@ /* Do not change these import lines. Datagrok will import API library in exactly the same manner */ | ||
} | ||
//name: testStringAsync | ||
//input: int a | ||
//output: int b | ||
export async function testIntAsync(a: number): Promise<number> { | ||
return new Promise((r) => r(a + 10)); | ||
} |
Sorry, the diff of this file is too big to display
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2156942
92
14332
7
1
2
+ Added@datagrok/api-tests@1.9.0(transitive)
Updateddatagrok-api@../../js-api