mirror of
https://github.com/samsonjs/gitter.git
synced 2026-03-25 09:25:45 +00:00
19 lines
522 B
JavaScript
19 lines
522 B
JavaScript
var gh = require('../')
|
|
, vows = require('vows')
|
|
, assert = require('assert')
|
|
, h = require('./helper')
|
|
|
|
, User = 'samsonjs'
|
|
, Repo = 'gitter'
|
|
, Sha = '6c6cb9b3449c17e3ae4eee9061b4081ff33c8c64'
|
|
|
|
vows.describe('Blob').addBatch({
|
|
'after fetching a blob': {
|
|
topic: function() { gh.blob(User, Repo, Sha, this.callback) },
|
|
'the data can be accessed via the content attribute': function(err, blob) {
|
|
assert.ifError(err)
|
|
assert.ok(blob)
|
|
assert.ok(blob.content)
|
|
}
|
|
}
|
|
}).export(module)
|