I hereby claim:
- I am murphyrandle on github.
- I am murphyrandle (https://keybase.io/murphyrandle) on keybase.
- I have a public key whose fingerprint is 4883 805F 924D 5DB8 3F28 5D27 55BE 69DC 8596 6961
To claim this, I am signing this object:
describe('A simple Angular app testing suite', function() { | |
it("should load a module from an app, and mock the module's dependency.", function() { | |
module('NameOfApp', function($provide) { | |
$provide.value('bar', {baz: function(){return true;}}); | |
}); | |
inject('foo', function(foo) { | |
expect(foo).not.toBe(null); | |
}); | |
}); |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[add your bin description]" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="testApp"> | |
<mr-image src="https://api.mnky.es/v1/s/RnHx0Iy6to2Xovoc78DHwQ//2014-08-31%2008.32.07-2.jpg" width="400px"></mr-image> |
{-# LANGUAGE OverloadedStrings #-} | |
import Control.Monad.State | |
import System.Posix.Unistd | |
makeStateBetter :: StateT Int IO () | |
makeStateBetter = do | |
curState <- get | |
put (curState + 1) | |
pogamMonad :: StateT Int IO () |
data User = User { | |
id :: String, | |
email :: String, | |
hash :: String, | |
institutionId :: String | |
} deriving (Show, Generic) | |
instance ToJSON User | |
instance FromJSON User | |
instance ToDatum User |
/** | |
* Changes `class=` to `className=` and 'for=' to `htmlFor=` | |
* for the sake of JSX! | |
*/ | |
if (typeof module === 'object' && typeof define !== 'function') { | |
var define = function (factory) { | |
module.exports = factory(require, exports, module); | |
}; | |
} |
Pulling repository nginx | |
61e8f94e1d65: Error pulling image (latest) from nginx, endpoint: https://cdn-registry-1.docker.io/v1/, Get https://cdn-registry-1.docker.io/v1/images/61e861e8f94e1d65: Error pulling image (latest) from nginx, Get https://cdn-registry-1 | |
.docker.io/v1/images/61e8f94e1d65cf3f2f409c70ecbc4401a9c5db83e9cfbf82c4e595e44a890376/ancestry: dial tcp: lookup cdn-registry-1.docker.io on [10.0.2.32014/07/26 15:54:01 Error pulling image (latest) from nginx, Get https://cdn-registry | |
-1.docker.io/v1/images/61e8f94e1d65cf3f2f409c70ecbc4401a9c5db83e9cfbf82c4e595e44a890376/ancestry: dial tcp: lookup cdn-registry-1.docker.io on [10.0.2.3]:53: too many redirects |
describe('A simple Angular app testing suite', function() { | |
it("should load a module from an app, and mock the module's dependency.", function() { | |
module('NameOfApp', function($provide) { | |
$provide.value('bar', {baz: function(){return true;}}); | |
}); | |
inject('foo', function(foo) { | |
expect(foo).not.toBe(null); | |
}); | |
}); |
# Remember, this is wrong! | |
describe 'A simple Angular app testing suite', -> | |
it "should load a module from an app, and mock the module's dependency.", -> | |
module 'NameOfApp', ($provide) -> | |
$provide.value 'bar', | |
baz: -> true | |
inject 'foo', (foo) -> | |
expect(foo).not.toBe(null) |