Skip to content

Instantly share code, notes, and snippets.

@robinboehm
Created February 13, 2014 15:15
Show Gist options
  • Save robinboehm/8976835 to your computer and use it in GitHub Desktop.
Save robinboehm/8976835 to your computer and use it in GitHub Desktop.
task variable names
<!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="css/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 src="task.js"></script>
<!-- Spec -->
<script src="spec.js"></script>
</body>
</html>
describe("A simpleValue variable", function () {
it("should be defined", function () {
expect(simpleValue).toBeDefined();
});
it("should be a number", function () {
expect(typeof simpleValue).toBe('number');
});
it("should be 3", function () {
expect(simpleValue).toBe(3);
});
});
describe("A $impl3Value___ variable", function () {
it("should be defined", function () {
expect($impl3Value___).toBeDefined();
});
it("should be a number", function () {
expect(typeof $impl3Value___).toBe('number');
});
it("should be 1", function () {
expect($impl3Value___).toBe(1);
});
});
describe("A π variable", function () {
it("should be defined", function () {
expect(π).toBeDefined();
});
it("should be a number", function () {
expect(typeof π).toBe('number');
});
it("should be 3.141592... -> Math.PI", function () {
expect(π).toBe(Math.PI);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment