UNPKG

node_terminus

Version:

Pantheon Terminus cli wrapper and extensions

36 lines (35 loc) 1.74 kB
const fs = require('fs') const expect = require('chai').expect var common = require("./../../common.js"); var options = common.options; let nt = common.nt; var assert = common.assert; it(' * object ----> "pantheon" has instantiated',() => { expect(nt.pantheon).is.a('object') }) it(' * object ----> "pantheon" has "cli" object',() => { expect(nt.pantheon.cli).is.a('object') }) it(' * function ----> "pantheon" has "run" function',() => { expect(nt.pantheon.run).is.a('function') }) describe('Config object defaults:',() => { it(` * config ----> "pantheon"."config"."node_terminus_base_path" has a value: ${nt.pantheon.config.node_terminus_base_path}`,() => { expect(nt.pantheon.config.node_terminus_base_path).is.not.empty }) it(` * config ----> "pantheon"."config"."terminus_cache_path" has a value: ${nt.pantheon.config.terminus_cache_path}`,() => { expect(nt.pantheon.config.terminus_cache_path).is.not.empty }) it(` * config ----> "pantheon"."config"."terminus_cache_volume_arg" has a value: ${nt.pantheon.config.terminus_cache_volume_arg}`,() => { expect(nt.pantheon.config.terminus_cache_volume_arg).is.not.empty }) it(` * config ----> "pantheon"."config"."machine_token" has a value: ${nt.pantheon.config.machine_token}`,() => { expect(nt.pantheon.config.machine_token).is.not.empty }) it(` * config ----> "pantheon"."config"."docker_image" has a value: ${nt.pantheon.config.docker_image}`,() => { expect(nt.pantheon.config.docker_image).is.not.empty }) it(` * config ----> "pantheon"."config"."terminus_cmd" has a value: ${nt.pantheon.config.terminus_cmd}`,() => { expect(nt.pantheon.config.terminus_cmd).is.not.empty }) })