<commit_before>var path = require('path');
var expect = require('expect.js');
var open = require('../');

describe('open', function() {
  function pathTo(asset) {
    return path.join(__dirname, 'support', asset);
  }
  var html = pathTo('asset.html');
  var jpeg = pathTo('asset.jpg');
  var txt = pathTo('asset.txt');

  it('should open html file in default browser', function(done) {
    open(html, done);
  });

  it('should open image file in default image viewer', function(done) {
    open(jpeg, done);
  });

  it('should open txt file in default text editor', function(done) {
    open(txt, done);
  });

});
<commit_msg>[test] add https uri test<commit_after>var path = require('path');
var expect = require('expect.js');
var open = require('../');

describe('open', function() {
  function pathTo(asset) {
    return path.join(__dirname, 'support', asset);
  }

  it('should open html file in default browser', function(done) {
    open(pathTo('asset.html'), done);
  });

  it('should open https uris in default browser', function(done) {
    open('https://github.com/fixedset/open.js', done);
  });

  it('should open image file in default image viewer', function(done) {
    open(pathTo('asset.jpg'), done);
  });

  it('should open txt file in default text editor', function(done) {
    open(pathTo('asset.txt'), done);
  });

});

{'fraction_non_alphanumeric': 0.1775631500742942, 'fraction_numerical': 0.0, 'mean_word_length': 4.1022727272727275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3893506', 'n_tokens_mistral': 427, 'n_tokens_neox': 413, 'n_words': 121}