<commit_before>describe '#hello', ->
  it "test should be written", ->
    console.log Backbone
    expect(1).to.eq 1
<commit_msg>Add first test<commit_after>db = openDatabase 'bb-websql-tests', '', 'Backbone Websql Tests', 1024 * 1024

User = Backbone.Model.extend
  store: new Backbone.WebSQL db, 'users'

Users = Backbone.Collection.extend
  model: User
  store: User::store

describe 'Backbone.WebSQL', ->
  beforeEach ->
    @user = new User
      name: 'foobar'

  describe '.create', ->
    it 'should create a user and can fetch', (done) ->
      @user.save().done (=>
        fetchedUser = new User id: @user.id
        fetchedUser.fetch().done (=>
          expect(fetchedUser.id).to.eq @user.id
          expect(fetchedUser.name).to.eq @user.name
        )
        done()
      )(done)

{'fraction_non_alphanumeric': 0.14429109159347553, 'fraction_numerical': 0.012547051442910916, 'mean_word_length': 2.6944444444444446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2970850', 'n_tokens_mistral': 276, 'n_tokens_neox': 258, 'n_words': 66}