Browse Source

Fixed build

Kirollos Risk 5 years ago
parent
commit
ed54539758
3 changed files with 2 additions and 88 deletions
  1. 1 1
      .travis.yml
  2. 1 1
      package.json
  3. 0 86
      test/index.html

+ 1 - 1
.travis.yml

@@ -1,3 +1,3 @@
 language: node_js
 node_js:
-   - 0.6
+   - "0.6.x"

+ 1 - 1
package.json

@@ -13,6 +13,6 @@
     "test": "vows --spec"
   },
   "devDependencies": {
-    "vows": "*"
+    "vows": "0.5.x"
   }
 }

+ 0 - 86
test/index.html

@@ -1,86 +0,0 @@
-<!doctype html>
-<head>
-<script src="http://code.jquery.com/jquery.min.js"></script>
-<script src="../src/fuse.js"></script>
-</head>
-
-<body>
-	<input type="text" id="search" />
-<script>
-
-$(function() {
-
-var pages = [
-  { title: "Apple", subtitle: "Red and crunchy", url: "/apple" }
-, { title: "Banana", subtitle: "Yellow and soft", url: "/banana" }
-, { title: "Orange", subtitle: "Orange and juicy", url: "/orange" }
-]
-
-var options = {
-  keys: ["title", "subtitle"]
-, id: 'url'
-}
-
-var fuse = new Fuse(pages, options)
-fuse.search("ora")
-});
-/*
-$(function(){
-
-	$.getJSON('users.json',function(data){
-		 var users = data;
-		 var names = [];
-		 $.each(users, function(index, user) {
-		 	names.push(user.name);
-		 });
-
-		 var options = {
-				keys : ['name'],
-				index : 'registrationNumber'
-			};
-
-		var f = new Fuse(names);
-
-		$('#search').on('keyup',function(){
-
-				var text = $(this).val();
-				console.log('Searched for '+ text);
-				console.log(f.search(text));
-
-			});
-	});
-
-});
-*/
-
-$(function(){
-
-	$.getJSON('books.json',function(data){
-		 var books = data;
-		 var authors = [];
-
-		 $.each(books, function(index, book) {
-		 	authors.push(book.author);
-		 });
-
-		 var options = {
-				keys: ['author', 'title'],
-				caseSensitive: false
-			};
-
-		var f = new Fuse(books, options);
-
-		$('#search').on('keyup',function(){
-
-				var text = $(this).val();
-				console.log('Searched for '+ text);
-				console.log(f.search(text));
-
-			});
-	});
-
-});
-
-</script>
-
-</body>