Created
February 13, 2014 09:27
-
-
Save robinboehm/8972232 to your computer and use it in GitHub Desktop.
simple angular-fiddle test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" type="text/css" href="../../bower_components/jasmine/lib/jasmine-core/jasmine.css"> | |
<link rel="stylesheet" type="text/css" href="../../stylesheets/jasmine.css"> | |
</head> | |
<body> | |
<script src="../../bower_components/jasmine/lib/jasmine-core/jasmine.js"></script> | |
<script src="../../bower_components/jasmine/lib/jasmine-core/jasmine-html.js"></script> | |
<script src="../../bower_components/jasmine/lib/jasmine-core/boot.js"></script> | |
<!-- App --> | |
<script> | |
###jscontent### | |
</script> | |
<!-- Spec --> | |
<script src="tasks/javascript/001-primitives/test/primitives.spec.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" type="text/css" href="bower_components/jasmine/lib/jasmine-core/jasmine.css"> | |
<link rel="stylesheet" type="text/css" href="stylesheets/jasmine.css"> | |
</head> | |
<body> | |
<script src="bower_components/jasmine/lib/jasmine-core/jasmine.js"></script> | |
<script src="bower_components/jasmine/lib/jasmine-core/jasmine-html.js"></script> | |
<script src="bower_components/jasmine/lib/jasmine-core/boot.js"></script> | |
<!-- App --> | |
<script> | |
"###jscontent####" | |
</script> | |
<!-- Spec --> | |
<script src="test/primitives.spec.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var primitiveNumber = 2; | |
var objectNumber = new Number(3); | |
objectNumber.foo = "bar"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("The variable primitiveNumber", function () { | |
it("should be defined", function () { | |
expect(primitiveNumber).toBeDefined(); | |
}); | |
it("should be a primitive number", function () { | |
expect(typeof primitiveNumber).toBe('number'); | |
}); | |
it("should equal the value", function () { | |
expect(primitiveNumber).toEqual(2); | |
}); | |
}); | |
describe("A variable objectNumber", function () { | |
it("should be defined", function () { | |
expect(objectNumber).toBeDefined(); | |
}); | |
it("should be a object", function () { | |
expect(typeof objectNumber).toBe('object'); | |
}); | |
it("should not be able to contain properties", function () { | |
expect(objectNumber.foo).toBe('bar'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment