<commit_before>/* tslint:disable:quotemark */

import {assert} from 'chai';
import {X, Y} from '../../../src/channel';
import {AxisComponent} from '../../../src/compile/axis/component';
import {parseGridAxis, parseLayerAxis, parseMainAxis, parseUnitAxis} from '../../../src/compile/axis/parse';
import {gridScale} from '../../../src/compile/axis/rules';
import {parseLayerModel, parseUnitModelWithScale} from '../../util';

describe('Axis', function() {
  // TODO: move this to model.test.ts
  describe('= true', function() {
    it('should produce default properties for axis', function() {
      const model1 = parseUnitModelWithScale({
        "mark": "bar",
        "encoding": {
          "y": {"type": "quantitative", "field": 'US_Gross', "aggregate": "sum", "axis": true}
        },
        "data": {"url": "data/movies.json"}
      });

      const model2 = parseUnitModelWithScale({
        "mark": "bar",
        "encoding": {
          "y": {"type": "quantitative", "field": 'US_Gross', "aggregate": "sum"}
        },
        "data": {"url": "data/movies.json"}
      });
      assert.deepEqual(model1.axis(Y), model2.axis(Y));
    });
  });
  describe('parseUnitAxis', function() {
    it('should produce Vega grid axis objects for both main axis and for grid axis)', function() {
      const model = parseUnitModelWithScale({
        mark: "point",
        encoding: {
          x: {<commit_msg>Remove axis: true from test as it is not supported. <commit_after>/* tslint:disable:quotemark */

import {assert} from 'chai';
import {X, Y} from '../../../src/channel';
import {AxisComponent} from '../../../src/compile/axis/component';
import {parseGridAxis, parseLayerAxis, parseMainAxis, parseUnitAxis} from '../../../src/compile/axis/parse';
import {gridScale} from '../../../src/compile/axis/rules';
import {parseLayerModel, parseUnitModelWithScale} from '../../util';

describe('Axis', function() {
  // TODO: move this to model.test.ts
  describe('= true', function() {
    it('should produce default properties for axis', function() {
      const model1 = parseUnitModelWithScale({
        "mark": "bar",
        "encoding": {
          "y": {"type": "quantitative", "field": 'US_Gross', "aggregate": "sum"}
        },
        "data": {"url": "data/movies.json"}
      });

      const model2 = parseUnitModelWithScale({
        "mark": "bar",
        "encoding": {
          "y": {"type": "quantitative", "field": 'US_Gross', "aggregate": "sum"}
        },
        "data": {"url": "data/movies.json"}
      });
      assert.deepEqual(model1.axis(Y), model2.axis(Y));
    });
  });
  describe('parseUnitAxis', function() {
    it('should produce Vega grid axis objects for both main axis and for grid axis)', function() {
      const model = parseUnitModelWithScale({
        mark: "point",
        encoding: {
          x: {
{'fraction_non_alphanumeric': 0.1921858500527983, 'fraction_numerical': 0.0028159098908834917, 'mean_word_length': 2.8825136612021858, 'pattern_counts': {'":': 33, '<': 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': '3080662', 'n_tokens_mistral': 847, 'n_tokens_neox': 850, 'n_words': 224}