Dear Datagrok team,
There seems to be an issue with entity.setProperties
when using in TypeScript (working in native JavaScript).
Datagrok version: 1.12.2
Code to reproduce:
test(‘properties set/get’, async () => {
const project = DG.Project.create();
await grok.dapi.projects.save(project);
const property = 'test';
const analysisId = 'testid';
const setProperties: Map<string, string> = new Map([
[property, analysisId],
]);
await project.setProperties(setProperties);
const getProperties = await project.getProperties();
expect(getProperties.get(property) === setProperties.get(property), true);
});