test-export.js 662 B

1234567891011121314151617181920212223242526272829
  1. const Parse = require("parse/node");
  2. Parse.initialize("edu-textbook");
  3. Parse.serverURL = "http://8.140.98.43/parse";
  4. global.Parse = Parse;
  5. /**
  6. *
  7. (npx vite build) -and (node temp/test-export.js)
  8. npx vite build && node temp/test-export.js
  9. npx vite build
  10. node temp/test-export.js
  11. */
  12. import { exportProcessReportDocs } from "../func-tbook-export";
  13. async function main(){
  14. try{
  15. console.log("测试合集")
  16. console.log(await exportProcessReportDocs("FR7KZtefyR"))
  17. // console.log("测试列表")
  18. // console.log(await exportProcessReportDocs(null,["9V575dapEM"]))
  19. }catch(err){
  20. console.error(err)
  21. }
  22. }
  23. main()