@jaxolotl/wdclib
Version:
Required Library to bridge javascript with Tableau. Use the scripts below to create the combined shim library. i.e. npm run-script build_and_copy
21 lines (14 loc) • 475 B
JavaScript
/* eslint-env node, mocha, jest */
import { ENUMS_DICTIONARY, applyEnums } from './Enums';
describe('UNIT - Enums', () => {
it('applyEnums to copy properties from ENUMS_DICTIONARY target', () => {
let target = {
joinEnum: {
inner: 'to be overwritten',
left: 'to be overwritten'
}
};
applyEnums(target);
expect(target).toEqual(ENUMS_DICTIONARY);
});
});