Skip to content

Instantly share code, notes, and snippets.

@yuxel
Created July 6, 2011 15:30
Show Gist options
  • Save yuxel/1067525 to your computer and use it in GitHub Desktop.
Save yuxel/1067525 to your computer and use it in GitHub Desktop.
Jasmine
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Jasmine Spec Runner</title>
<link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine.css">
<script type="text/javascript" src="jasmine/lib/jasmine.js"></script>
<script type="text/javascript" src="jasmine/lib/jasmine-html.js"></script>
</head>
<body>
<script type="text/javascript">
describe("Tart", function() { //this is a test suit
it("should be delicious", function() { //this is a spec
var tart = "delicious";
expect(tart).toBe("delicious"); //an expectation
});
});
jasmine.getEnv()['addReporter'](new jasmine.TrivialReporter());
jasmine.getEnv()['execute']();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment