<commit_before>{_, $, RootView, View}  = require 'atom'
TabBarView = require '../lib/tab-bar-view'

describe "Tabs package main", ->
  beforeEach ->
    atom.rootView = new RootView
    atom.rootView.openSync('sample.js')
    atom.packages.activatePackage("tabs")

  describe ".activate()", ->
    it "appends a tab bar all existing and new panes", ->
      expect(atom.rootView.panes.find('.pane').length).toBe 1
      expect(atom.rootView.panes.find('.pane > .tab-bar').length).toBe 1
      pane = atom.rootView.getActivePane()
      pane.splitRight(pane.copyActiveItem())
      expect(atom.rootView.find('.pane').length).toBe 2
      expect(atom.rootView.panes.find('.pane > .tab-bar').length).toBe 2

  describe ".deactivate", -><commit_msg>:lipstick: Add parens after method in describe<commit_after>{_, $, RootView, View}  = require 'atom'
TabBarView = require '../lib/tab-bar-view'

describe "Tabs package main", ->
  beforeEach ->
    atom.rootView = new RootView
    atom.rootView.openSync('sample.js')
    atom.packages.activatePackage("tabs")

  describe ".activate()", ->
    it "appends a tab bar all existing and new panes", ->
      expect(atom.rootView.panes.find('.pane').length).toBe 1
      expect(atom.rootView.panes.find('.pane > .tab-bar').length).toBe 1
      pane = atom.rootView.getActivePane()
      pane.splitRight(pane.copyActiveItem())
      expect(atom.rootView.find('.pane').length).toBe 2
      expect(atom.rootView.panes.find('.pane > .tab-bar').length).toBe 2

  describe ".deactivate()", ->
{'fraction_non_alphanumeric': 0.1678688524590164, 'fraction_numerical': 0.005245901639344262, 'mean_word_length': 3.4489795918367347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '6848690', 'n_tokens_mistral': 504, 'n_tokens_neox': 488, 'n_words': 96}