Skip to content

Commit

Permalink
Fix unit tests, get jquery from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Oct 11, 2015
1 parent 881a3ad commit 0375c8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function(config) {
files: [

// dependencies
{ pattern: 'jquery-1.8.2.min.js', watched: false, served: true, included: true },
{ pattern: 'node_modules/jquery/dist/jquery.js', watched: false, served: true, included: true },
{ pattern: 'src/jquery.ui.position.js', watched: false, served: true, included: true },
{ pattern: 'src/jquery.contextMenu.js', watched: false, served: true, included: true },

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "MIT",
"dependencies": {
"jquery": ">=1.8.2"
"jquery": "^1.8.2"
},
"devDependencies": {
"dalek-browser-chrome": "0.0.11",
Expand Down
5 changes: 4 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@

<!-- Your project file goes here -->
<link rel="stylesheet" href="../src/jquery.contextMenu.css" type="text/css" media="screen">
<script type="text/javascript" src="../jquery-1.8.2.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.js"></script>

<script type="text/javascript" src="../src/jquery.ui.position.js"></script>

<script type="text/javascript" src="../src/jquery.contextMenu.js"></script>


<!-- Your tests file goes here -->
<script type="text/javascript" src="unit/test-events.js"></script>
</head>
Expand Down

0 comments on commit 0375c8f

Please sign in to comment.