{"size": 779, "ext": "js", "max_stars_repo_path": "test/TestDomUtils.js", "max_stars_repo_name": "shaack/jsv", "max_stars_repo_stars_event_min_datetime": "2020-11-18T11:34:44.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-18T11:34:44.000Z", "max_issues_repo_path": "test/TestDomUtils.js", "max_issues_repo_name": "shaack/cm-web-modules", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/TestDomUtils.js", "max_forks_repo_name": "shaack/cm-web-modules", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.8695652174, "max_line_length": 78, "alphanum_fraction": 0.6598202824}
/**
 * Author and copyright: Stefan Haack (https://shaack.com)
 * Repository: https://github.com/shaack/cm-web-modules
 * License: MIT, see file 'LICENSE'
 */
import {describe, it, assert} from "../node_modules/teevi/src/teevi.js"
import {DomUtils} from "../src/cm-web-modules/utils/DomUtils.js"

describe("DomUtils", function () {

    it("should read :root property", function () {
        assert.equal(DomUtils.getCustomProperty("dom-utils-test-var"), "#777")
    })

    it("should write and read :root property", function() {
        DomUtils.setCustomProperty("my-property", "lalelu")
        assert.equal(DomUtils.getCustomProperty("my-property"), "lalelu")
    })

    it("should set body-bg", function() {
        DomUtils.setCustomProperty("body-bg", "white")
    })
})