We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb98745 commit 29b984dCopy full SHA for 29b984d
site/src/util/filetree.test.ts
@@ -5,16 +5,20 @@ import {
5
isFolder,
6
moveFile,
7
removeFile,
8
- setFile,
+ createFile,
9
traverse,
10
} from "./filetree"
11
12
-test("setFile() set file into the file tree", () => {
+test("createFile() set file into the file tree", () => {
13
let fileTree: FileTree = {
14
"main.tf": "terraform",
15
images: { "java.Dockerfile": "java dockerfile" },
16
}
17
- fileTree = setFile("images/python.Dockerfile", "python dockerfile", fileTree)
+ fileTree = createFile(
18
+ "images/python.Dockerfile",
19
+ fileTree,
20
+ "python dockerfile",
21
+ )
22
expect((fileTree.images as FileTree)["python.Dockerfile"]).toEqual(
23
"python dockerfile",
24
)
0 commit comments