Created
August 19, 2018 21:13
-
-
Save szanata/c51a1fea0bf44e674782bc7584da8a15 to your computer and use it in GitHub Desktop.
Syntax options
This file contains hidden or 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
// Option one | |
// All setters | |
XYZ.title = 'My cool test'; | |
XYZ.before = () => { | |
}; | |
XYZ.do = () => { | |
}; | |
XYZ.after = () => { | |
}; | |
// Option two | |
// All functions | |
XYZ.title('My cool test'); | |
XYZ.before(() => { | |
}); | |
XYZ.do(() => { | |
}); | |
XYZ.after(() => { | |
}); | |
// Option 3 | |
// One big function arguments | |
XYZ.test('My cool test', { | |
before() { | |
}, | |
do() { | |
}, | |
after() { | |
} | |
}); | |
// Option four | |
// Annotation look-a-like | |
// @title | |
'My cool test'; | |
// @before | |
() => { | |
} | |
// @do | |
() => { | |
} | |
// @after | |
() => { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment