Datasets:
File size: 697 Bytes
0e239c6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 'use strict';
// Await the unchanged upstream object module and verify all native variants ran.
const test = require('node:test');
const assert = require('node:assert/strict');
const fs = require('node:fs');
test('unchanged upstream Object tests with all four native configurations', async () => {
await require('/testbed/nodejs/node-addon-api/test/object/object.js');
const observed = fs.readFileSync(process.env.CROSSSWE_PUBLIC_BINDING_TRACE, 'utf8')
.trim().split('\n').sort();
assert.deepEqual(observed, ['binding', 'binding_custom_namespace',
'binding_noexcept', 'binding_noexcept_maybe']);
console.log('PUBLIC_NATIVE_BINDING_CONFIGURATIONS ' + JSON.stringify(observed));
});
|