MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / supportsFormat

Function supportsFormat

tests/modules/io/storage/formats.js:9–16  ·  view source on GitHub ↗
(store, format)

Source from the content-addressed store, hash-verified

7import {emptyDomain, keys} from "./storage_FIXTURE.js";
8
9function supportsFormat(store, format) {
10 try {
11 store.format = format;
12 }
13 catch {
14 }
15 return store.format === format;
16}
17
18const path = "test";
19let store = storage.open({path});

Callers 1

formats.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected