Last active
June 9, 2018 11:38
-
-
Save RolandStuder/c3bb4153fd33042e5d3b815f327e4dd9 to your computer and use it in GitHub Desktop.
CommentsInSektchSystemsSpec
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
CommentsInSektchSystemsSpec | |
Spec | |
uncommented* | |
# I can actually comment, that's helpful | |
comment with some syntax -> commented | |
commented | |
remove comment -> uncommented |
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
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
if (current_state_name == "uncommented") { | |
return $("pre", {}, "State") | |
} | |
if (current_state_name == "commented") { | |
return $("pre", {}, "State\n #some comment that can explain the state.") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment