Skip to content

Commit f894d25

Browse files
committed
add test spec
1 parent 6d68012 commit f894d25

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
<script type="text/javascript">
1313
seajs.config({
1414
alias: {
15-
'$': 'jquery/jquery/1.7.2/jquery'
15+
'$': 'jquery/jquery/1.7.2/jquery',
16+
'jquery': 'jquery/jquery/1.7.2/jquery'
1617
},
1718
map: [
1819
function(url) {

respond/spec.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
define(function(require) {
2+
var module = require('./dist/respond');
3+
describe('respond', function() {
4+
it('should have window.respond', function() {
5+
expect(window.respond).to.be.a('object');
6+
expect(window.respond.update).to.be.a('function');
7+
});
8+
});
9+
});

scrollmonitor/spec.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
define(function(require) {
2+
var module = require('./dist/scrollmonitor');
3+
describe('scrollmonitor', function() {
4+
it('should have create function', function() {
5+
expect(module).to.be.a('object');
6+
expect(module.create).to.be.a('function');
7+
});
8+
});
9+
});

0 commit comments

Comments
 (0)