remove beautylog dependency

This commit is contained in:
2017-01-21 11:51:30 +01:00
parent 7de17bbefa
commit ead69f3bb9
10 changed files with 98 additions and 104 deletions

View File

@@ -1,28 +1,28 @@
import "typings-test";
import * as path from "path";
import "should";
import {Qenv} from "../dist/index";
import 'typings-test'
import * as path from 'path'
import { expect } from 'smartchai'
import {Qenv} from '../dist/index'
process.cwd = () => {
return path.join(__dirname,"./assets/");
return path.join(__dirname,'./assets/')
}
process.env["key1"] = "original"
process.env['key1'] = 'original'
let qenvTestObject:Qenv;
describe("Qenv class",function(){
it("should create a new class",function(){
qenvTestObject = new Qenv(process.cwd(),process.cwd(),false);
});
it("key1 should be not be overwritten since it is already present",function(){
process.env.key1.should.equal("original");
});
it("key2 should be read from Yml",function(){
process.env.key2.should.equal("fromYml");
});
it("keyValueObjectArray should hold all retrieved values",function(){
qenvTestObject.keyValueObjectArray[0].value.should.equal("original");
qenvTestObject.keyValueObjectArray[1].value.should.equal("fromYml");
let qenvTestObject:Qenv
describe('Qenv class',function(){
it('should create a new class',function(){
qenvTestObject = new Qenv(process.cwd(),process.cwd(),false)
})
it('key1 should be not be overwritten since it is already present',function(){
expect(process.env.key1).to.equal('original')
})
it('key2 should be read from Yml',function(){
expect(process.env.key2).to.equal('fromYml')
})
it('keyValueObjectArray should hold all retrieved values',function(){
expect(qenvTestObject.keyValueObjectArray[0].value).to.equal('original')
expect(qenvTestObject.keyValueObjectArray[1].value).to.equal('fromYml')
})
});
})