finished
This commit is contained in:
parent
05bda05ad7
commit
5e9b59ba24
|
@ -7,5 +7,4 @@ const meinPlayer = new Player()
|
||||||
meinPlayer.play(meinSong)
|
meinPlayer.play(meinSong)
|
||||||
if(meinPlayer.isPlaying){
|
if(meinPlayer.isPlaying){
|
||||||
console.log(meinPlayer.currentlyPlayingSong.title)
|
console.log(meinPlayer.currentlyPlayingSong.title)
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -7,4 +7,4 @@ Song.prototype.persistFavoriteStatus = function(value) {
|
||||||
throw new Error("not yet implemented");
|
throw new Error("not yet implemented");
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = Song;
|
module.exports = Song;
|
|
@ -4,4 +4,4 @@ function parseToProto(json, proto){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = { parseToProto}
|
module.exports = { parseToProto }
|
|
@ -4,14 +4,10 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "test",
|
||||||
"start": "node ."
|
"start": "node ."
|
||||||
},
|
},
|
||||||
"repository": {
|
"author": "",
|
||||||
"type": "git",
|
|
||||||
"url": "https://gitea.silias.ch/Roman_Schenk/WBE_Jasmine_demo"
|
|
||||||
},
|
|
||||||
"author": "Roman Schenk",
|
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jasmine": "^4.4.0"
|
"jasmine": "^4.4.0"
|
||||||
|
|
|
@ -1,15 +1,29 @@
|
||||||
describe("parseToProto", function() {
|
describe("parseToProto", function() {
|
||||||
var obj;
|
var parseToProto = require("../lib/parse-to-proto");
|
||||||
|
var proto;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
let proto = {category: "animal"}
|
proto = {category: "animal"};
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should have category, type, name and age attribute", function() {
|
it("should have category, type, name and age attribute", function() {
|
||||||
let obj = parseToProto('{"type": "cat", "name":"Mimi","age":3}', proto)
|
let obj = parseToProto('{"type": "cat", "name":"Mimi","age":3}', proto);
|
||||||
expect("animal").toEqual(obj.category);
|
expect("animal").toEqual(obj.category);
|
||||||
expect("cat").toEqual(obj.type);
|
expect("cat").toEqual(obj.type);
|
||||||
expect("Mimi").toEqual(obj.name);
|
expect("Mimi").toEqual(obj.name);
|
||||||
expect(3).toEqual(obj.age);
|
expect(3).toEqual(obj.age);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue