Entries tagged with javascript

Testing Email Delivery in Nightwatch.js End to End test

Screenshot

I’ve published an example Nightwatch.js End to End (E2E) testing project that contains Email delivery testing using Mandrill and RequestBin.

ngs/nightwatch-mail-example on GitHub

This example project tests subscribing and unsubscribing Hacker News Letter user flow.

Read On 

Hyperterm Tomorrow Themes

I’ve published Hyperterm themes based on Tomorrow Themes.

How to install

npm search hyperterm-tomorrow
$EDITOR ~/.hyperterm.js

Read On 

Hyperterm Tomorrow Themes

I’ve published Hyperterm themes based on Tomorrow Themes.

How to install

npm search hyperterm-tomorrow
$EDITOR ~/.hyperterm.js

Read On 

Generating JavaScript code to arrange elements to be same with specified HTML or element using jQuery Element Diff

jQuery Element Diff Plugin is a plugin to generate JavaScript code to arrange elements to be same.

Read On 

Generating unique selector with jQuery Selectorator

jQuery Selectorator Plugin is a plugin to generate unique selector from jQuery object.

$('element').getSelector()

Set options.ignore to ignore classes, ids, names:

$('element').getSelector({ ignore: { classes: ['ui-droppable'] } })

Read On 

Generating Objective-C Literals from JSON

The modern syntaxes for NSDictionary, NSArray, NSNumber are supported from Xcode 4.4. To use this easily for testing, I customized JSON#stringify method ported from JSON2.js.

With node.js, the script can convert JSON from STDIN.

$ node Dictionary.js < test.js
# with cURL
$ curl 'http://itunes.apple.com/search?term=Path&entity=software' | node Dictionary.js

Also in browser, this works with stripping lines under if(process) scope.

Dictionary.stringify({ a:1, b:"Hello", c:[1,2,3] }, null, "