import { describe, expect, it } from 'vitest'
import { checkStorageQuota } from './quota'

describe('@platform-modules/uploads/quota', () => {
  it('returns true under the limit', () => {
    expect(checkStorageQuota(50, 40, 100)).toBe(true)
  })

  it('returns true exactly at the limit', () => {
    expect(checkStorageQuota(60, 40, 100)).toBe(true)
  })

  it('returns false over the limit', () => {
    expect(checkStorageQuota(70, 40, 100)).toBe(false)
  })
})
