-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff0f6cf
commit df12105
Showing
2 changed files
with
2 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1 @@ | ||
import { processMenuDefinition } from "./utils"; | ||
|
||
it("processes UIMenuDefinition to UIMenuDefinitionNative", () => { | ||
const result = processMenuDefinition({ | ||
title: "title", | ||
subtitle: "subtitle", | ||
children: [ | ||
{ | ||
action: { | ||
value: { | ||
title: "action title", | ||
subtitle: "action subtitle", | ||
handler: () => { | ||
console.log("my handler"); | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
action: { | ||
value: { | ||
title: "action title2", | ||
subtitle: "action subtitle2", | ||
handler: () => { | ||
console.log("my handler 2"); | ||
}, | ||
}, | ||
}, | ||
}, | ||
], | ||
}); | ||
|
||
console.log(JSON.stringify(result, undefined, 2)); | ||
}); | ||
it("processes UIMenuDefinition to UIMenuDefinitionNative", () => {}); |