<commit_before>techanModule('scale/financetime', function(specBuilder) {
  'use strict';

  var mockInit = function(module) {
    var linear = function() {};
    var ordinal = function() {};

    return module(linear, ordinal);
  };

  var actualInit = function(module) {
    var linear = d3.scale.linear;
    var ordinal = d3.scale.ordinal;

    return module(linear, ordinal);
  };

  var data = ohlc.facebook.slice(0, 10).map(function(d) { return new Date(d[0]); });
  console.log(data);

  specBuilder.require(require('../../../../src/scale/financetime'), function(instanceBuilder) {
    instanceBuilder.instance('mocked', mockInit);
    instanceBuilder.instance('actual', actualInit, function(bucket) {
      var financetime = null;

      describe('And domain and range is initialised', function() {
        beforeEach(function() {
          financetime = bucket.financetime;
          financetime.domain(data).range([100, 110]);
        });

        it('Then domain should equal the domain set', function() {
          expect(financetime.domain()).toEqual(data);
        });

        it('Then range should return the range set', function() {
          expect(financetime.range()).toEqual([100, 110]);
        });

        xit('Then scale of first index should return min range', function() {<commit_msg>Removed log message<commit_after>techanModule('scale/financetime', function(specBuilder) {
  'use strict';

  var mockInit = function(module) {
    var linear = function() {};
    var ordinal = function() {};

    return module(linear, ordinal);
  };

  var actualInit = function(module) {
    var linear = d3.scale.linear;
    var ordinal = d3.scale.ordinal;

    return module(linear, ordinal);
  };

  var data = ohlc.facebook.slice(0, 10).map(function(d) { return new Date(d[0]); });

  specBuilder.require(require('../../../../src/scale/financetime'), function(instanceBuilder) {
    instanceBuilder.instance('mocked', mockInit);
    instanceBuilder.instance('actual', actualInit, function(bucket) {
      var financetime = null;

      describe('And domain and range is initialised', function() {
        beforeEach(function() {
          financetime = bucket.financetime;
          financetime.domain(data).range([100, 110]);
        });

        it('Then domain should equal the domain set', function() {
          expect(financetime.domain()).toEqual(data);
        });

        it('Then range should return the range set', function() {
          expect(financetime.range()).toEqual([100, 110]);
        });

        xit('Then scale of first index should return min range', function() {
{'fraction_non_alphanumeric': 0.1474088291746641, 'fraction_numerical': 0.01381957773512476, 'mean_word_length': 3.1696, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6427339', 'n_tokens_mistral': 762, 'n_tokens_neox': 715, 'n_words': 175}