This file contains 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
package build | |
import java.net.InetSocketAddress | |
import play.sbt.PlayRunHook | |
import sbt._ | |
object ProcessRunHookBuilder { | |
def apply( | |
base: File, | |
before: Option[String] = None, |
This file contains 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
// Add to boot.js | |
jasmine.SpyStrategy.prototype.returnResolvedPromise = function(promiseApi, resolvedValue) { | |
return this.callFake(function() { | |
var def = promiseApi.defer(); | |
def.resolve(resolvedValue); | |
return def.promise; | |
}); | |
}; | |
jasmine.SpyStrategy.prototype.returnRejectedPromise = function(promiseApi, rejectValue) { |
This file contains 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
require('yourModule', function (sut) { | |
var testValue, result; | |
describe('given testValue is 1', function () { | |
// ARRANGE | |
beforeEach(function () { | |
testValue = 1; | |
}); |
This file contains 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
define({ | |
parse: function (querystring) { | |
if (querystring[0] === '?') { | |
querystring.substring(1, querystring.length); | |
} | |
var pairs = querystring.split('&'), | |
keys = {}; |
This file contains 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
(function (curator, backbone, _) { | |
var view = backbone.Marionette.ItemView.extend({ | |
template: curator.Constants.Templates.FeedProductsGridTableRow, | |
tagName: 'tr', | |
attributes: function () { | |
return { |
This file contains 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
(function (app) { | |
app.ProductSearchCollection = window.IQBackbone.ODataCollection.extend( | |
{ | |
model: app.ProductSearchModel, | |
urlRoot: | |
function () { return Constants.SERVER_ROOT + '/odata/model/Products/Search'; }, | |
urlParameters: ['$expand=Product'], | |
This file contains 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
[TestFixture] | |
public class EntityModuleTests | |
{ | |
private static IEntityDataService fakeDataService; | |
private ConfigurableBootstrapper bootstrapper; | |
private Browser browser; | |
[SetUp] | |
public void Setup() | |
{ |
NewerOlder