fix(core): update

This commit is contained in:
2020-02-09 17:36:29 +00:00
parent 3153021190
commit 8da43a79d3
14 changed files with 636 additions and 481 deletions

View File

@ -17,9 +17,7 @@ tap.test('should create a valid instance of CloudflareAccount', async () => {
});
});
tap.skip.test('.listZones() -> should display an entire account', async tools => {
tap.test('.listZones() -> should display an entire account', async tools => {
tools.timeout(600000);
const result = await testCloudflareAccount.listZones();
console.log(result);
@ -50,9 +48,11 @@ tap.test('should create a valid record for a subdomain', async tools => {
tap.test('should get a record from Cloudflare', async tools => {
tools.timeout(600000);
await testCloudflareAccount.getRecord(`${randomPrefix}subdomain.bleu.de`, 'A').then(responseArg => {
console.log(responseArg);
});
await testCloudflareAccount
.getRecord(`${randomPrefix}subdomain.bleu.de`, 'A')
.then(responseArg => {
console.log(responseArg);
});
});
tap.test('should remove a subdomain record from Cloudflare', async tools => {
@ -70,7 +70,10 @@ tap.test('.purge(some.domain) -> should purge everything', async () => {
// WORKERS
tap.test('should create a worker', async () => {
const worker = await testCloudflareAccount.workerManager.createWorker('myawesomescript', `addEventListener('fetch', event => { event.respondWith(fetch(event.request)) })`);
const worker = await testCloudflareAccount.workerManager.createWorker(
'myawesomescript',
`addEventListener('fetch', event => { event.respondWith(fetch(event.request)) })`
);
await worker.setRoutes([
{
zoneName: 'bleu.de',