Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adaptlearning/adapt_framework
/ check-json.js
File
check-json.js
grunt/tasks/check-json.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
module.exports =
function
(grunt) {
2
const
Helpers = require(
'../helpers'
)(grunt);
3
grunt.registerTask(
'check-json'
,
'Validates the course json, checks for duplicate IDs, and that each element has a parent'
,
function
() {
4
// validates JSON files
Callers
nothing calls this directly
Calls
3
run
Method · 0.80
getData
Method · 0.80
checkIds
Method · 0.45
Tested by
no test coverage detected