-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
.markbot.yml
49 lines (43 loc) · 1.09 KB
/
.markbot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
repo: "letter-looper-triangle"
canvasCourse: javascript
naming: true
restrictFileTypes: true
liveWebsite: true
git:
numCommits: 1
allCommitted: true
allSynced: true
html:
- path: "index.html"
valid: true
bestPractices: true
has:
- 'script[src="js/main.js"]'
hasNot:
- ["link", "CSS isn’t necessary to complete this assignment"]
- [
"body :not(script)",
"The `<script>` tag should be the only tag inside `<body>` — no other HTML is needed",
]
js:
- path: "js/main.js"
valid: true
bestPractices: true
search:
- "var"
- "prompt"
- "for"
- ["(9|10|11)", "There should be 10 rows in the triangle."]
- "document.write"
- "<br>"
functionality:
- path: "index.html"
setup: |
window.prompt = function () {
return 'a';
}
tests:
- |
let content = document.body.textContent.trim().replace(/[\s\r\n\t]/g, '');
if (content.length !== 55) fail(`There are ${content.length} letters written out to the page but there should be 55`);
pass();