Skip to content

Commit

Permalink
#16 add initial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mirontoli committed Jun 13, 2014
1 parent 00e9d23 commit ee6743f
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = function (grunt) {
// configurable paths
var localConfig = {
app: 'app',
spec: 'spec',
dist: 'dist'
};

Expand Down Expand Up @@ -76,9 +77,19 @@ module.exports = function (grunt) {
compile: {
files: {
'<%= local.app %>/scripts/try.js': '<%= local.app %>/scripts/try.coffee', // 1:1 compile
'<%= local.spec %>/calculatorSpec.js': '<%= local.spec %>/calculatorSpec.coffee'
}
},
},
jasmine: {
pivotal: {
src: '<%= local.app %>/**/try.js',
options: {
specs: '<%= local.spec %>/*Spec.js',
helpers: '<%= local.spec %>/*Helper.js'
}
}
},
clean: {
dist: {
files: [{
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ SQL Max, SQL Server Max Memory Calculator, available at ([sqlmax.chuvash.eu](htt

SQL Max is optimized for mobiles and can be used even when you are offline, even though it works perfectly in a desktop browser.

- [Release Notes](Release.md)

### Idea

The original idea of a tool for calculating the SQL Server Max Memory comes from [Vlad Catrinescu](http://about.me/vladcatrinescu), SharePoint MVP, who wrote a very popular whitepaper SQL Server Performance in a SharePoint Environment:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"matchdep": "~0.3.0",
"connect-livereload": "~0.4.0",
"grunt-google-cdn": "~0.4.0",
"grunt-contrib-coffee": "~0.10.1"
"grunt-contrib-coffee": "~0.10.1",
"grunt-contrib-jasmine": "~0.6.5"
}
}
3 changes: 3 additions & 0 deletions spec/calculatorSpec.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
describe "Calculator", ->
it 'can add two positive numbers', ->
(expect 1 + 1).toEqual 2
8 changes: 8 additions & 0 deletions spec/calculatorSpec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(function() {
describe("Calculator", function() {
return it('can add two positive numbers', function() {
return (expect(1 + 1)).toEqual(2);
});
});

}).call(this);
5 changes: 5 additions & 0 deletions spec/helloSpec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe("Hello world", function() {
it("says hello", function() {
expect("Hello world!").toEqual("Hello world!");
});
});

0 comments on commit ee6743f

Please sign in to comment.