Created
May 21, 2018 09:47
-
-
Save manigandand/22057e013641016c2936d37cc9aa76fc to your computer and use it in GitHub Desktop.
AtomSnipets
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
'.source.go': | |
'ginkgo snipet': | |
'prefix': 'ginkgo' | |
'body': """var _ = Describe("Describe", func() { | |
Describe("Main Describe", func() { | |
Context("Context", func() { | |
It("Scenario", func() { | |
By("Test By") | |
Expect("test goginko").To(Equal("test goginko")) | |
}) | |
}) | |
}) | |
})""" | |
'ginkgo Describe snipet': | |
'prefix': 'gDescribe' | |
'body': """Describe("Main Describe", func() { | |
Context("Context", func() { | |
It("Scenario", func() { | |
By("Test By") | |
Expect("test goginko").To(Equal("test goginko")) | |
}) | |
}) | |
})""" | |
'ginkgo Context snipet': | |
'prefix': 'gContext' | |
'body': """Context("Context", func() { | |
It("Scenario", func() { | |
By("Test By") | |
Expect("test goginko").To(Equal("test goginko")) | |
}) | |
})""" | |
'ginkgo It snipet': | |
'prefix': 'gIt' | |
'body': """It("Scenario", func() { | |
By("Test By") | |
Expect("test goginko").To(Equal("test goginko")) | |
})""" | |
'return nil and error': | |
'prefix': 'rne' | |
'body': 'return nil, err' | |
'return false and error': | |
'prefix': 'rfe' | |
'body': 'return false, err' | |
'Return True and Nil': | |
'prefix': 'rte' | |
'body': 'return true, nil' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment