Snippets for vim using snipmate + pathogen compatible bundle
This are the snippets for the following libraries:
- chaijs ( http://chaijs.com/ )
- mocha ( http://visionmedia.github.com/mocha/ )
- YUI ( http://yuilibrary.com/ )
Simple snippet loader is included in here in order to make snippets pathogen compatible, which means you can install them as any pathogen bundle.
All snippets begin with a prefix of the library in order to keep them separate
from each other, e.g., expect(false).to.be.ok;
is chai.ok
expect(false).to.be.ok;
expect(true).to.not.be.ok;
expect(null).to.eql(''});
expect(null).to.equal('');
expect(null).to.be.instanceof(false);
expect(null).to.have.property('property');
expect(null).to.be.a('');
expect(null).to.be.a('string');
expect(null).to.be.a('array');
expect(null).to.be.a('object');
expect('').to.be.a('null');
expect('').to.be.a('undefined');
describe('Description', function() {
// code in here
});
before(function() {
// code in here
});
after(function() {
// code in here
});
beforeEach(function() {
// code in here
});
afterEach(function() {
// code in here
});
it('should ', function() {
// code in here
});
Pending it
it('should ');