update to latest dependencies
This commit is contained in:
parent
d25033b84b
commit
9cb3c1508e
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,8 +1,7 @@
|
|||||||
coverage/
|
coverage/
|
||||||
docs/
|
docs/
|
||||||
ts/typings/
|
ts/typings/
|
||||||
ts/**/*.js
|
|
||||||
ts/**/*.js.map
|
|
||||||
.idea/
|
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
|
.nogit/
|
||||||
nogit/
|
nogit/
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"description": "cloudflare management for CoreOS",
|
"description": "cloudflare management for CoreOS",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings":"dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts)"
|
"test": "(npmts)"
|
||||||
},
|
},
|
||||||
@ -30,6 +30,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts-g": "^5.2.6",
|
"npmts-g": "^5.2.6",
|
||||||
|
"qenv": "^1.0.6",
|
||||||
"should": "^9.0.2",
|
"should": "^9.0.2",
|
||||||
"typings-test": "^1.0.1"
|
"typings-test": "^1.0.1"
|
||||||
}
|
}
|
||||||
|
13
test/test.js
13
test/test.js
File diff suppressed because one or more lines are too long
11
test/test.ts
11
test/test.ts
@ -1,12 +1,13 @@
|
|||||||
import "typings-test";
|
import "typings-test";
|
||||||
import cflare = require("../dist/index");
|
import cflare = require("../dist/index");
|
||||||
let should = require("should");
|
let should = require("should");
|
||||||
let nogit = require("../nogit/nogit.json");
|
import {Qenv} from "qenv";
|
||||||
|
let testQenv = new Qenv(process.cwd(),process.cwd() + "/.nogit");
|
||||||
|
|
||||||
let testCflareAccount = new cflare.CflareAccount();
|
let testCflareAccount = new cflare.CflareAccount();
|
||||||
testCflareAccount.auth({
|
testCflareAccount.auth({
|
||||||
email: nogit.cfemail,
|
email: process.env.CF_EMAIL,
|
||||||
key: nogit.cfkey
|
key: process.env.CF_KEY
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("cflare",function(){
|
describe("cflare",function(){
|
||||||
@ -24,7 +25,7 @@ describe("cflare",function(){
|
|||||||
describe(".getZoneId(domainName)",function(){
|
describe(".getZoneId(domainName)",function(){
|
||||||
it("should get an Cloudflare Id for a domain string",function(done){
|
it("should get an Cloudflare Id for a domain string",function(done){
|
||||||
this.timeout(10000)
|
this.timeout(10000)
|
||||||
testCflareAccount.getZoneId("push.rocks")
|
testCflareAccount.getZoneId("bleu.de")
|
||||||
.then((responseArg)=>{
|
.then((responseArg)=>{
|
||||||
console.log(responseArg);
|
console.log(responseArg);
|
||||||
done();
|
done();
|
||||||
@ -34,7 +35,7 @@ describe("cflare",function(){
|
|||||||
describe(".listRecords(domainName)",function(){
|
describe(".listRecords(domainName)",function(){
|
||||||
it("should list all records for a specific Domain Name",function(done){
|
it("should list all records for a specific Domain Name",function(done){
|
||||||
this.timeout(10000);
|
this.timeout(10000);
|
||||||
testCflareAccount.listRecords("push.rocks")
|
testCflareAccount.listRecords("bleu.de")
|
||||||
.then((responseArg) => {
|
.then((responseArg) => {
|
||||||
console.log(responseArg);
|
console.log(responseArg);
|
||||||
done();
|
done();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user