From f84c1915d752dd8e8097e96496ef3e9dbc12d998 Mon Sep 17 00:00:00 2001 From: Paul Carey Date: Wed, 1 Dec 2010 17:45:06 +0000 Subject: [PATCH 1/2] Pass testname to setup as convenience eg for logging. --- bin/expresso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/expresso b/bin/expresso index 2e10bbb..fa2e129 100755 --- a/bin/expresso +++ b/bin/expresso @@ -764,7 +764,7 @@ function runSuite(title, tests, fn) { next(); }); } - }); + }, key); } else { test(function(fn){ process.addListener('beforeExit', function(){ From c873da73aa39899979a3916a986b9250ad5e9495 Mon Sep 17 00:00:00 2001 From: Paul Carey Date: Thu, 23 Dec 2010 16:47:34 +0000 Subject: [PATCH 2/2] Add app specific support for AMD modules --- bin/expresso | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/expresso b/bin/expresso index fa2e129..6eb7b12 100755 --- a/bin/expresso +++ b/bin/expresso @@ -1,5 +1,11 @@ #!/usr/bin/env node +/* + * A namespaced shim that allows me to run modules in both the browser and Node. + * See http://www.sitepen.com/blog/2010/09/30/run-anywhere-javascript-modules-boilerplate-code/ + */ +ZC_DEFINE = typeof(define) == 'undefined'; + /* * Expresso * Copyright(c) TJ Holowaychuk