<commit_before>import {assert} from 'chai';
import sinon from 'sinon';
import Cursor from 'kittik-cursor';
import Text from 'kittik-shape-text';
import Print from 'kittik-animation-print';
import Slide from '../../src/Slide';

const SLIDE_DECLARATION = {
  shapes: [{
    name: 'Hello',
    type: 'Text',
    options: {
      text: 'Hello, World!'
    }
  }],
  animations: [{
    name: 'Print',
    type: 'Print',
    options: {
      duration: 1
    }
  }],
  order: [
    'Hello::Print->Print'
  ]
};

const SERIALIZED_SLIDE_DECLARATION = {
  shapes: [{
    name: 'Hello',
    type: 'Text',
    options: {
      align: 'center',
      background: false,
      blink: false,
      bold: false,
      dim: false,
      foreground: false,
      height: 5,
      hidden: false,
      reverse: false,
      text: 'Hello, World!',
      underlined: false,
      width: 15,
      x: 10,
      y: 10
    }
  }],
  animations: [{<commit_msg>fix(slide): Fix issue with True Color support<commit_after>import {assert} from 'chai';
import sinon from 'sinon';
import Cursor from 'kittik-cursor';
import Text from 'kittik-shape-text';
import Print from 'kittik-animation-print';
import Slide from '../../src/Slide';

const SLIDE_DECLARATION = {
  shapes: [{
    name: 'Hello',
    type: 'Text',
    options: {
      text: 'Hello, World!'
    }
  }],
  animations: [{
    name: 'Print',
    type: 'Print',
    options: {
      duration: 1
    }
  }],
  order: [
    'Hello::Print->Print'
  ]
};

const SERIALIZED_SLIDE_DECLARATION = {
  shapes: [{
    name: 'Hello',
    type: 'Text',
    options: {
      align: 'center',
      background: 'none',
      blink: false,
      bold: false,
      dim: false,
      foreground: 'none',
      height: 5,
      hidden: false,
      reverse: false,
      text: 'Hello, World!',
      underlined: false,
      width: 15,
      x: 10,
      y: 10
    }
  }],
  animations: [{
{'fraction_non_alphanumeric': 0.15388655462184875, 'fraction_numerical': 0.008403361344537815, 'mean_word_length': 2.324607329842932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1170385', 'n_tokens_mistral': 678, 'n_tokens_neox': 669, 'n_words': 172}