Skip to content

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisradek committed Aug 30, 2016
1 parent 8011561 commit dcc6109
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"waf"
],
"scripts": {
"test": "npm -s run-script lint && npm -s run-script unit && npm -s run-script buildertest && npm -s run-script browsertest && ([ -f configuration ] && npm -s run-script integration || true)",
"test": "npm -s run-script lint && npm -s run-script unit && npm -s run-script browsertest && ([ -f configuration ] && npm -s run-script integration || true)",
"unit": "istanbul `[ $COVERAGE ] && echo 'cover _mocha' || echo 'test mocha'` -- test test/json test/model test/protocol test/query test/services test/signers test/xml test/s3 test/cloudfront",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- test test/json test/model test/protocol test/query test/services test/signers test/xml",
"browsertest": "rake browser:test",
Expand Down
5 changes: 3 additions & 2 deletions tasks/browser.rake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def sdk_version
end

namespace :browser do
$BUILDER = "node dist-tools/browser-builder.js"
$BUILDER = "node dist-tools/service-loader.js"
$BROWSERIFY = "browserify"
$BROWSERIFY_DIST = "dist/aws-sdk.js"
$BROWSERIFY_TEST = "test/browser/build/tests.js"
Expand All @@ -50,7 +50,8 @@ namespace :browser do
end

task :build_all => [:setup_dist_tools, :dist_path] do
sh({"MINIFY" => ""}, "#{$BUILDER} all > dist/aws-sdk-all.js")
sh({"MINIFY" => ""}, "AWS_SERVICES=all #{$BUILDER}")
sh "#{$BROWSERIFY} ./ > dist/aws-sdk-all.js"
end

desc 'Caches assets to the dist-tools build server'
Expand Down

0 comments on commit dcc6109

Please sign in to comment.