I hereby claim:
- I am antony on github.
- I am aiten (https://keybase.io/aiten) on keybase.
- I have a public key ASCn6d0qJgOXOuqmRnQSHTAYoj2U_pdHzKHZS2mUT9fAcwo
To claim this, I am signing this object:
'use strict' | |
class MagicPage { | |
constructor () { | |
var contents = Object.keys(this.getContent()) | |
contents.map((key) => { | |
this[key] = this.getContent()[key] | |
}) | |
} | |
} |
includeTargets << grailsScript("_GrailsInit") | |
display = ':65' | |
resolution = '-screen 1024x768' | |
target('default': "Run tests with xephyr") { | |
List parsedArgs = args.split() as List | |
exec (executable: 'Xephyr', spawn: true) { |
def "The 'recommended' way"() { | |
when: | |
enabled = true | |
firstName = "Luke" | |
lastName = "Daley" | |
createButton.click() | |
then: | |
at ShowPage | |
} |
package vendigo.support.extensions | |
import groovy.json.JsonOutput | |
import javax.script.ScriptEngine | |
import javax.script.ScriptEngineManager | |
class Chance { | |
private static ScriptEngine engine |
I hereby claim:
To claim this, I am signing this object:
'use strict' | |
const Hapi = require('hapi') | |
const server = Hapi.server({ port: 3000, host: 'localhost' }) | |
const init = async () => { | |
await server.start() | |
console.log(`Server running at: ${server.info.uri}`) | |
} |
04fa8427a6bd1febc6863fa38e2dd82a1dc6c26860ba43eaf095629f68f55e452a625e8e14dddb4626d0b0f180f0024a7d460cdce5dda44f8684ce33e016ebf5c8;wayne-o |
package myapp.specs.base | |
import geb.spock.GebReportingSpec | |
import spock.lang.Shared | |
import static org.openqa.selenium.logging.LogType.BROWSER | |
abstract class BrowserLoggingBaseSpec extends GebReportingSpec { | |
void cleanup() { |
import querystring from 'querystring' | |
import fetch from 'node-fetch' | |
const base = `${process.env.apiUrl}/api/v1` | |
class HttpError extends Error { | |
} | |
class AccessDeniedError extends HttpError { | |
} |
// We use 'to:' on the modal trigger to force a refresh of the page cache once the modal has been inserted. | |
// Angular Bootstrap modals are actually created in the DOM once they are triggered, so our initial page parse doesn't grab them. | |
// If we don't do this, you will end up with a lot of nulls since Geb 0.11. | |
class ExamplePage extends Page { | |
static content = { | |
modalTrigger(to: ExamplePage) { $('.show-modal') } | |
modal { $('.my-modal').module(ModalDialogModule) } | |
} |