mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-15 03:04:37 +03:00
10 lines
284 B
CoffeeScript
10 lines
284 B
CoffeeScript
Buffer = require 'buffer'
|
|
fs = require 'fs'
|
|
|
|
describe 'Buffer', ->
|
|
describe 'constructor', ->
|
|
it "loads the contents of the given url", ->
|
|
filePath = require.resolve 'fixtures/sample.txt'
|
|
buffer = new Buffer filePath
|
|
expect(buffer.text).toBe fs.read(filePath)
|