UNPKG

activator-oce-exporter

Version:

Extract Activator binder and convert it to valid OCE mono pacakge

63 lines (56 loc) 1.52 kB
'use strict'; const test = require('tap').test; const OCEexporter = require('../index'); // Export oce from directory // test("Export oce from directory", async (t) => { // try { // const res = await OCEexporter('./test/activator', './test/dist'); // t.ok(res); // t.end(); // } catch (err) { // t.error(err); // t.end(); // } // }); // Export oce from directory test("Export oce from directory", async (t) => { try { const res = await OCEexporter('/Users/sli/dev/OCE_binders/Test_binder', './test/OCE_Mono_Package'); t.ok(res); t.end(); } catch (err) { t.error(err); t.end(); } }); //Export OCE from zip // test("Export oce zip from folder", async (t) => { // try { // const res = await OCEexporter('./test/prueba/activator.zip', './test/dist'); // t.ok(res); // t.end(); // } catch (err) { // t.error(err); // t.end(); // } // }); // test("Export oce folder", async (t) => { // try { // const res = await OCEexporter('./test/activator.zip', './test/dist'); // t.ok(res); // t.end(); // } catch (err) { // t.error(err); // t.end(); // } // }); // test("Export oce folder", async (t) => { // try { // const res = await OCEexporter('./test/activator.zip', './export'); // t.ok(res); // t.end(); // } catch (err) { // t.error(err); // t.end(); // } // });