How to use the plist.__setParseObject function in plist

To help you get started, we’ve selected a few plist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DextApp / dext / app / main / plugins / plugins.spec.js View on Github external
it('should load all core plugins', async () => {
    // eslint-disable-next-line global-require
    require('conf').__setStoreData('plugins', [
      path.join(CORE_PLUGIN_PATH, 'foo-plugin'),
      path.join(CORE_PLUGIN_PATH, 'bar-plugin'),
      path.join(CORE_PLUGIN_PATH, 'baz-plugin'),
    ]);
    // eslint-disable-next-line global-require
    require('plist').__setParseObject({
      objects: [],
    });
    // load core plugins
    const results = await plugins.loadPlugins([
      { path: CORE_PLUGIN_PATH, isCore: true },
    ]);
    expect(results.length).toBeGreaterThan(0);
    expect(results.filter(p => p.name === 'about')).toBeTruthy();
  });
});

plist

Apple's property list parser/builder for Node.js and browsers

MIT
Latest version published 1 year ago

Package Health Score

74 / 100
Full package analysis