This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* AWS S3 Lambda function for Coralogix | |
* | |
* @file https://gist.github.com/trieloff/1219ec5ec2f3ff42cad4b3f3ced5a429 | |
* @author Coralogix Ltd. <info@coralogix.com> | |
* @link https://coralogix.com/ | |
* @copyright Coralogix Ltd. | |
* @licence Apache-2.0 | |
* @version 1.0.8 | |
* @since 1.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-env mocha */ | |
const sinon = require('sinon'); | |
const proxyquire = require('proxyquire'); | |
const assert = require('assert'); | |
const { functionundertest } = require('../index'); | |
describe('Testing Errors caused by HTTP Response', () => { | |
let functionundertest; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-env mocha */ | |
const nock = require('nock'); | |
const assert = require('assert'); | |
const { AssertionError } = require('assert'); | |
const { functionundertest } = require('../index'); | |
describe('Testing Errors caused by HTTP Response', () => { | |
let scope; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-env mocha */ | |
const assert = require('assert'); | |
const { AssertionError } = require('assert'); | |
const { functionundertest } = require('../index'); | |
describe('Testing Error States', () => { | |
it('Throws an error when called with missing arguments', () => { | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"test": "nyc --reporter=text --reporter=lcov --check-coverage --branches 100 --statements 100 --lines 100 mocha", | |
}, | |
"devDependencies": { | |
"mocha": "^5.2.0", | |
"nyc": "^13.1.0", | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xerslein | |
Großwagen | |
Neuerbech | |
Däffald | |
Miedershagstedd | |
Berower | |
Redem | |
Ettenfulder | |
Meberstorf | |
Geitzermorcht |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aach | |
Aachen | |
Aalen | |
Aarbergen | |
Aasbüttel | |
Abbau Ader | |
Abbendorf | |
Abbenrode | |
Abberode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.stdin.setEncoding('utf8'); | |
if (process.argv[2]=="--help"||process.argv[2]=="-h") { | |
help(); | |
} else if (!process.stdin.isTTY) { | |
var input = ""; | |
process.stdin.on('readable', () => { | |
var chunk = process.stdin.read(); | |
if (chunk !== null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@include file="/libs/foundation/global.jsp"%><% | |
String[] whitelist = currentStyle.get("allowedSites", new String[0]); | |
%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cq:design_dialog jcr:primaryType="nt:unstructured" jcr:title="Embed" sling:resourceType="cq/gui/components/authoring/dialog" jcr:description="Content policy for embedding content"> | |
<content jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/container"> | |
<items jcr:primaryType="nt:unstructured"> | |
<tabs jcr:primaryType="nt:unstructured" maximized="true" sling:resourceType="granite/ui/components/coral/foundation/tabs"> | |
<items jcr:primaryType="nt:unstructured"> | |
<properties jcr:primaryType="nt:unstructured" jcr:title="Main" margin="true" sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns"> | |
<items jcr:primaryType="nt:unstructured"> | |
<content jcr:primaryType="nt:unstructured" margin="false" sling:resourceType="granite/ui/components/coral/foundation/container"> | |
<items jcr:primaryType="nt:unstructured"> | |
<allowedSites jcr:primaryType="nt:unstructured" fieldDescription="I |
NewerOlder