<commit_before>import applyDefaults from '../../../../src/scene/structure/apply-defaults.js'
import window from '../../../../src/scene/structure/parametric-objects/window'

// mock runtime module to prevent from tests blowing up
jest.mock('../../../../src/core/runtime.js', () => ({isBrowser: false, isNode: true}))

test('get window data3d', async function(){
  const attributes = applyDefaults({type: 'window'})
  const data3d = await window(attributes)

  // mesh names
  expect(Object.keys(data3d.meshes)).toEqual([ 'frame', 'glass' ])
  expect(data3d.meshes.frame.positions).toBeDefined()
  expect(data3d.meshes.frame.normals).toBeDefined()
});<commit_msg>renamed to avoid namespace collision<commit_after>import applyDefaults from '../../../../src/scene/structure/apply-defaults.js'
import window3d from '../../../../src/scene/structure/parametric-objects/window'

// mock runtime module to prevent from tests blowing up
jest.mock('../../../../src/core/runtime.js', () => ({isBrowser: false, isNode: true}))

test('get window data3d', async function(){
  const attributes = applyDefaults({type: 'window'})
  const data3d = await window3d(attributes)

  // mesh names
  expect(Object.keys(data3d.meshes)).toEqual([ 'frame', 'glass' ])
  expect(data3d.meshes.frame.positions).toBeDefined()
  expect(data3d.meshes.frame.normals).toBeDefined()
});
{'fraction_non_alphanumeric': 0.1927353595255745, 'fraction_numerical': 0.008895478131949592, 'mean_word_length': 4.133079847908745, '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': '6738115', 'n_tokens_mistral': 410, 'n_tokens_neox': 403, 'n_words': 88}