diff --git a/test/availableBricks/staticAssets.coffee b/test/availableBricks/staticAssets.coffee new file mode 100644 index 0000000..3a294a7 --- /dev/null +++ b/test/availableBricks/staticAssets.coffee @@ -0,0 +1,23 @@ +chai = require 'chai' +expect = chai.expect + +StaticAssets = require '../../src/availableBricks/staticAssets' + +describe 'StaticAssets', -> + it 'should handle strings and object as input data', -> + testInput = [ + 'myStringPath' + { urlRoot: '/myUrlPathRoot', path: 'myUrlPathPath' } + ] + + expectedOutput = [ + { urlRoot: '/', path: 'myStringPath' } + { urlRoot: '/myUrlPathRoot', path: 'myUrlPathPath' } + ] + + staticAssetsBrick = new StaticAssets() + + actualOutput = staticAssetsBrick._ensureUrlAndPath testInput + expect(actualOutput).to.eql expectedOutput + return + return diff --git a/test/dummyTest.coffee b/test/dummyTest.coffee deleted file mode 100644 index 6bb117d..0000000 --- a/test/dummyTest.coffee +++ /dev/null @@ -1,9 +0,0 @@ -# This is a dummy test file. -# Once you have own tests, feel free to remove this file. - -chai = require 'chai' -expect = chai.expect - -describe 'Dummy Test', -> - it 'should perform a dummy test', -> - expect(1).to.eql(1)