Skip to content

Commit 6ac6764

Browse files
committed
Reproducer for github-tools#463
1 parent 22b889c commit 6ac6764

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/repository.spec.js

+10
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,16 @@ describe('Repository', function() {
578578
remoteRepo.createBlob(imageBlob, assertSuccessful(done));
579579
});
580580

581+
it('should read the same unicode string blob as it was written', function(done) {
582+
let content = 'The temperature is 25°C'
583+
remoteRepo.createBlob(content, assertSuccessful(done, function(_, resp) {
584+
remoteRepo.getBlob(resp.sha, assertSuccessful(done, function(_, returnedContent) {
585+
expect(returnedContent).to.be(content);
586+
done();
587+
}));
588+
}));
589+
});
590+
581591
it('should star the repo', function(done) {
582592
remoteRepo.star(assertSuccessful(done, function() {
583593
remoteRepo.isStarred(assertSuccessful(done));

0 commit comments

Comments
 (0)