Delete accidentally committed and irrelevant file

This commit is contained in:
Calvin Montgomery 2014-02-04 22:00:08 -06:00
parent 6fe31b9a3e
commit 12596cb357
1 changed files with 0 additions and 39 deletions

View File

@ -1,39 +0,0 @@
var cfg = {
"mysql-server": "localhost",
"mysql-user": "syncdevel",
"mysql-db": "syncdevel",
"mysql-pw": "tacky",
"debug": true
};
var Database = require("./database");
var db = new Database(cfg);
var assert = require('assert');
db.init();
setTimeout(function () {
db.channelExists("adsjnfgjdsg", function (err, res) {
assert(!err && !res);
});
db.channelExists("xchan", function (err, res) {
assert(!err && res);
});
db.removeFromLibrary("xchan", "xxx2364", function (err, res) {
assert(!err);
console.log(res);
});
db.getLibraryItem("xchan", "xxx23456", function (err, media) {
assert(!err);
assert(media === null);
});
db.getLibraryItem("xchan", "G7X5s5vacIU", function (err, media) {
assert(!err);
assert(media !== null);
assert(media.id === "G7X5s5vacIU");
});
}, 1000);