-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable buttons until the user sets a name
- Loading branch information
1 parent
7866f86
commit 38a8814
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>Mocha Tests</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css"/> | ||
</head> | ||
<body> | ||
<div id="mocha"></div> | ||
|
||
<script src="https://unpkg.com/chai/chai.js"></script> | ||
<script src="https://unpkg.com/mocha/mocha.js"></script> | ||
|
||
<script class="mocha-init"> | ||
var expect = chai.expect; | ||
mocha.setup('bdd'); | ||
</script> | ||
|
||
<script> | ||
|
||
var sum = function () { | ||
return 0; | ||
} | ||
describe('#sum()', function () { | ||
context('without arguments', function () { | ||
it('should return 0', function () { | ||
expect(sum()).to.equal(0) | ||
}) | ||
}) | ||
}) | ||
</script> | ||
|
||
<script class="mocha-exec"> | ||
mocha.run(); | ||
</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
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