import assert from 'node:assert/strict'

import { buildOnlyOfficeScriptUrl } from '../src/services/onlyoffice.js'

function run() {
  assert.equal(
    buildOnlyOfficeScriptUrl('http://127.0.0.1:8082/'),
    'http://127.0.0.1:8082/web-apps/apps/api/documents/api.js'
  )
  console.log('onlyoffice service tests passed')
}

run()
