diff --git a/jasmine_demo/index.js b/jasmine_demo/index.js index 5c08601..e9b8901 100644 --- a/jasmine_demo/index.js +++ b/jasmine_demo/index.js @@ -7,5 +7,4 @@ const meinPlayer = new Player() meinPlayer.play(meinSong) if(meinPlayer.isPlaying){ console.log(meinPlayer.currentlyPlayingSong.title) -} - +} \ No newline at end of file diff --git a/jasmine_demo/jasmine-standalone-4.4.0.zip b/jasmine_demo/jasmine-standalone-4.4.0.zip deleted file mode 100644 index 6c6b660..0000000 Binary files a/jasmine_demo/jasmine-standalone-4.4.0.zip and /dev/null differ diff --git a/jasmine_demo/lib/jasmine_examples/Song.js b/jasmine_demo/lib/jasmine_examples/Song.js index d53ff27..bcc16e2 100644 --- a/jasmine_demo/lib/jasmine_examples/Song.js +++ b/jasmine_demo/lib/jasmine_examples/Song.js @@ -7,4 +7,4 @@ Song.prototype.persistFavoriteStatus = function(value) { throw new Error("not yet implemented"); }; -module.exports = Song; +module.exports = Song; \ No newline at end of file diff --git a/jasmine_demo/lib/parse-to-proto.js b/jasmine_demo/lib/parse-to-proto.js index ab3cd49..1aa71a5 100644 --- a/jasmine_demo/lib/parse-to-proto.js +++ b/jasmine_demo/lib/parse-to-proto.js @@ -4,4 +4,4 @@ function parseToProto(json, proto){ -module.exports = { parseToProto} \ No newline at end of file +module.exports = { parseToProto } \ No newline at end of file diff --git a/jasmine_demo/package.json b/jasmine_demo/package.json index a792e32..beeced1 100644 --- a/jasmine_demo/package.json +++ b/jasmine_demo/package.json @@ -4,14 +4,10 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "test", "start": "node ." }, - "repository": { - "type": "git", - "url": "https://gitea.silias.ch/Roman_Schenk/WBE_Jasmine_demo" - }, - "author": "Roman Schenk", + "author": "", "license": "ISC", "devDependencies": { "jasmine": "^4.4.0" diff --git a/jasmine_demo/spec/parse-to-proto-Specs.js b/jasmine_demo/spec/parse-to-proto-Specs.js index 0344c13..05d1790 100644 --- a/jasmine_demo/spec/parse-to-proto-Specs.js +++ b/jasmine_demo/spec/parse-to-proto-Specs.js @@ -1,15 +1,29 @@ describe("parseToProto", function() { - var obj; + var parseToProto = require("../lib/parse-to-proto"); + var proto; beforeEach(function() { - let proto = {category: "animal"} + proto = {category: "animal"}; }); 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("cat").toEqual(obj.type); expect("Mimi").toEqual(obj.name); expect(3).toEqual(obj.age); }); -}); \ No newline at end of file + +}); + + + + + + + + + + + +