Skip to content

Commit

Permalink
add test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 18, 2013
1 parent 6d68012 commit f894d25
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<script type="text/javascript">
seajs.config({
alias: {
'$': 'jquery/jquery/1.7.2/jquery'
'$': 'jquery/jquery/1.7.2/jquery',
'jquery': 'jquery/jquery/1.7.2/jquery'
},
map: [
function(url) {
Expand Down
9 changes: 9 additions & 0 deletions respond/spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
define(function(require) {
var module = require('./dist/respond');
describe('respond', function() {
it('should have window.respond', function() {
expect(window.respond).to.be.a('object');
expect(window.respond.update).to.be.a('function');
});
});
});
9 changes: 9 additions & 0 deletions scrollmonitor/spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
define(function(require) {
var module = require('./dist/scrollmonitor');
describe('scrollmonitor', function() {
it('should have create function', function() {
expect(module).to.be.a('object');
expect(module.create).to.be.a('function');
});
});
});

0 comments on commit f894d25

Please sign in to comment.