Skip to content

Commit

Permalink
add first test
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonOmo committed Jan 30, 2018
1 parent 207830a commit b0cffbe
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/browser/notification.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<html>
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../mocha.css" />
<script src="../../mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script>
function assert(expr, msg) {
if (!expr) throw new Error(msg || 'failed');
}
</script>
<script src="notification.spec.js"></script>
</head>
<body>
<div id="mocha"></div>
<script>
(function() {
mocha.checkLeaks();
mocha.growl()
mocha.run();
})();
</script>
</body>
</html>
7 changes: 7 additions & 0 deletions test/browser/notification.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

describe('Notification', function () {
it('should ask for notification, or show a notification', function () {
assert(true);
});
});

0 comments on commit b0cffbe

Please sign in to comment.