<commit_before>var assert = require('power-assert')
var isThisWeek = require('../is_this_week')

describe('isThisWeek', function() {
  beforeEach(function() {
    this.clock = sinon.useFakeTimers(
      new Date(2014, 8 /* Sep */, 25).getTime()
    )
  })

  afterEach(function() {
    this.clock.restore()
  })

  it('returns true if given date and current date have same week', function() {
    var date = new Date(2014, 8 /* Sep */, 21)
    assert(isThisWeek(date) === true)
  })

  it('returns false if given date and current date have different weeks', function() {
    var date = new Date(2014, 8 /* Sep */, 28)<commit_msg>Fix incorrect test for timezone `Pacific/Apia`<commit_after>var assert = require('power-assert')
var isThisWeek = require('../is_this_week')

describe('isThisWeek', function() {
  beforeEach(function() {
    this.clock = sinon.useFakeTimers(
      new Date(2014, 8 /* Sep */, 25).getTime()
    )
  })

  afterEach(function() {
    this.clock.restore()
  })

  it('returns true if given date and current date have same week', function() {
    var date = new Date(2014, 8 /* Sep */, 21)
    assert(isThisWeek(date) === true)
  })

  it('returns false if given date and current date have different weeks', function() {
    var date = new Date(2014, 8 /* Sep */, 29)
{'fraction_non_alphanumeric': 0.15259488768396592, 'fraction_numerical': 0.032532920216886134, 'mean_word_length': 3.4705882352941178, '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': '5881052', 'n_tokens_mistral': 442, 'n_tokens_neox': 394, 'n_words': 120}