Skip to content

Instantly share code, notes, and snippets.

@p16i
Created February 2, 2013 14:18
Show Gist options
  • Select an option

  • Save p16i/4697536 to your computer and use it in GitHub Desktop.

Select an option

Save p16i/4697536 to your computer and use it in GitHub Desktop.
var myGist = require("../");
var assert = require("assert");
var execSync = require("exec-sync");
it('should return -1 when the value is not present', function(){
/* Mock Clipboard */
var str = "TEST GIST";
execSync("echo "+str+" | pbcopy");
assert.equal( myGist.doGist(), str );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment