import { expect } from "chai" ; import "mocha" ; import { Client , File , Folder , } from "../client" ; import Server from "../server" ; import { getNextcloudClient } from "./testUtils" ; describe ( "05-NEXCLOUD-NODE-CLIENT-README" , function ( ) { this . timeout ( 1 * 60 * 1000 ) ; it . skip ( "01 readme" , async ( ) => { try { const server = new Server ( { url : "http:/test.test" , basicAuth : { username : "user" , password : "password" } } ) ; const client = new Client ( server ) ; const folder = await client . createFolder ( "test" ) ; const file = await folder . createFile ( "myFile.txt" , Buffer . from ( "My file content" ) ) ; await file . addTag ( "MyTag" ) ; await file . addTag ( "myComment" ) ; await folder . delete ( ) ; const content = await file . getContent ( ) ; } catch ( e ) { } } ) ; } ) ;