Example of how to use stdout and stdin from other programs in golang
Requires go
go run parentprocess.go
| const assert = require('assert') | |
| const upsertServiceRecord = require('../../src/hooks/upsert-service-record') // Hook to be tested | |
| const DatabaseServiceHelper = require('../test-helpers/databaseServiceHelper') // The helper I am working on | |
| describe.only('\'upsertServiceRecord\' hook', () => { | |
| before(() => { | |
| this.defaultServiceData = [ | |
| { |
| #!/usr/bin/env node | |
| const program = require('commander'); | |
| const chalk = require('chalk'); | |
| const io = require('socket.io-client'); | |
| const feathers = require('feathers/client'); | |
| const hooks = require('feathers-hooks'); | |
| const socketio = require('feathers-socketio/client'); | |
| program |