Skip to content

Instantly share code, notes, and snippets.

@innocentEdosa
innocentEdosa / test.js
Last active March 21, 2019 08:22
Test showing TDD by INNOCENT ILEGBINIJIE
import supertest from 'supertest';
import {should} form 'chai';
import app from './index.js';
const mockUser = {
email: 'awonderfuluser@gmail.com',
username: 'wonderfuluser',
password: 'anotherwonderwonders'}
describe('POST /api/users', () => {
{"lastUpload":"2020-07-18T13:59:21.737Z","extensionVersion":"v3.4.3"}
@innocentEdosa
innocentEdosa / answer.js
Created February 23, 2021 09:39
Answer to React Suspense and Concurrent Mode question by Contra
Well, this is where i intend to write my answer later today
@innocentEdosa
innocentEdosa / FileUpload.js
Created September 16, 2022 21:22 — forked from un-versed/FileUpload.js
AdonisJs file upload to S3
const { ServiceProvider } = require('@adonisjs/fold')
const path = require('path')
const fs = require('fs')
const Drive = use('Drive')
const Helpers = use('Helpers')
class FileUpload extends ServiceProvider {
register () { }
boot () { }