UPDATE: Add raw API to nodejs bindings
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
24fb87721f
commit
610b899f66
@@ -1,11 +1,20 @@
|
||||
import test from 'ava'
|
||||
|
||||
import { Model } from '../index.js';
|
||||
import { UserModel, Model } from '../index.js';
|
||||
|
||||
test('sum from native', (t) => {
|
||||
const model = new Model("Workbook1", "en", "UTC");
|
||||
test('User Model smoke test', (t) => {
|
||||
const model = new UserModel("Workbook1", "en", "UTC");
|
||||
|
||||
model.setUserInput(0, 1, 1, "=1+1");
|
||||
t.is(model.getFormattedCellValue(0, 1, 1), '2');
|
||||
});
|
||||
|
||||
|
||||
test('Raw API smoke test', (t) => {
|
||||
const model = new Model("Workbook1", "en", "UTC");
|
||||
|
||||
model.setUserInput(0, 1, 1, "=1+1");
|
||||
model.evaluate();
|
||||
t.is(model.getFormattedCellValue(0, 1, 1), '2');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user