Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

Assertion snippets #1

Closed
sindresorhus opened this issue Feb 15, 2016 · 7 comments
Closed

Assertion snippets #1

sindresorhus opened this issue Feb 15, 2016 · 7 comments

Comments

@sindresorhus
Copy link
Member

Assertions: https://github.com/sindresorhus/ava#assertions
Docs: https://atom.io/docs/latest/using-atom-snippets

I'm thinking the prefix should be t<name>, so tis, tsame, etc.

Could be easily adapted from the Sublime plugin if avajs/sublime-ava#1 is closed before this one.

@sindresorhus
Copy link
Member Author

// @sotojuan In case this is something you'd be interested in doing ;) No worries if not.

@sotojuan
Copy link
Contributor

I'll definitely give it a shot, though I am busy these few days (but definitely by the end of the week). Thanks for the mention!

@sindresorhus
Copy link
Member Author

No rush at all :)

@SamVerschueren
Copy link
Collaborator

SamVerschueren/vscode-ava#2

Feedback more then welcome!

@sotojuan
Copy link
Contributor

I'm not sure what the best practices for snippets are, but I personally like really short ones. For example, for t.notSame I'd do tns. That said, I could see the argument for tnotsame. What about pass or fail? Again, for me it's quicker to do tp or tf but that may be too short (?).

@SamVerschueren
Copy link
Collaborator

Not sure for Atom and Sublime, but in VS Code, when typing tf, it shows an auto-complete box with the first match selected. And what about t.false. That's tf as well :).

screen shot 2016-02-16 at 08 09 45

@sindresorhus
Copy link
Member Author

bd1ce09

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants