Skip to content

Commit

Permalink
[DONE] local nodejs unit test
Browse files Browse the repository at this point in the history
[ToTest] golang unit test
  • Loading branch information
davidkhala committed Feb 1, 2024
1 parent 906d605 commit 2a60aa5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/configtxlatorReadTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {filedirname} from '@davidkhala/light/es6.mjs';
import * as helper from '../app/helper.js';
import {ChannelConfig} from '../common/nodejs/channelConfig.js';
import {consoleLogger} from '@davidkhala/logger/log4.js';
import BinManager from '../common/nodejs/binManager/binManager.js';
import {Server} from '../common/nodejs/binManager/configtxlator.js';

const logger = consoleLogger('test:configtxlator');
const channelName = 'allchannel';
Expand All @@ -14,15 +14,12 @@ filedirname(import.meta);
const binPath = path.resolve(__dirname, '../common/bin/');
describe('configtxlator', async () => {

it('viaServer', async () => {

const binManager = new BinManager(binPath);
await binManager.configtxlatorRESTServer('start');

});

before(async () => {
await orderer.connect();
// viaServer
const server = new Server(binPath);
await server.start();

});
describe('app channel', () => {

Expand Down

0 comments on commit 2a60aa5

Please sign in to comment.