PHP 8.2.30
Preview: populator.spec.ts Size: 319 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/backend/utils/populator/populator.spec.ts

import { expect } from 'chai'

import populator from './populator.js'

describe('populator', () => {
  context('empty array given as params', () => {
    it('returns empty array when no records are given', async () => {
      const records = await populator([])
      expect(records).to.have.lengthOf(0)
    })
  })
})

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
70 B lrw-r--r-- 2026-02-28 00:32:28
Edit Download
4.60 KB lrw-r--r-- 2026-02-28 00:32:40
Edit Download
4.12 KB lrw-r--r-- 2026-02-28 00:32:40
Edit Download
1.14 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download
319 B lrw-r--r-- 2026-02-28 00:32:40
Edit Download
860 B lrw-r--r-- 2026-02-28 00:32:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).