Git Product home page Git Product logo

typeform-export-excel's Issues

Output filename should use a date generated filename

Expected Behavior

Make sure the output filename being generated is based on a date/time so we don't override output files on every typeform export run.

Current Behavior

Filename is exported as a static, non-changing name and gets overriden.

Cannot read property 'totalRespondents' of undefined

When running

$ typeform-export-excel --apiKey test1234 --formId iGifhW --filename survey-results.xlsx --author Adriaan

Expected Behavior

I expect it to create a download file.

Current Behavior

Error: Cannot read property 'totalRespondents' of undefined

Context

Just want to download the questions, because I can't export them in the Typeform itself.

Your Environment

  • Library Version used: [email protected]
  • Node.js version (e.g. Node.js 5.4): v13.0.1
  • Operating System and version (desktop or mobile): desktop

Test matches passes when the files are't the same

Test "Creating an Excel file from form matches previous sample file'"passes when the files are't the same , because expect inside 'try/catch'. Jest has issue #3917 about this problem.

There is also a problem that the actual file from "sample.xlsx" and the exported file have different sizes.

actual value to equal:
  7793
expected:
  7823

Expected Behavior

if a actual and a expected files have different sizes then test fails

Current Behavior

Test always passes.

Possible Solution

  1. Remove "try/catch" because it also prevents find errors and situations where exceptions are raised.
  2. Use cvle's gist

Steps to Reproduce (for bugs)

  1. change expected.size or actual.size to any number
  2. run test
  3. test passed

Context

I met this problem when worked on #12

Your Environment

  • Library Version used: 1.0.6
  • Node.js version (e.g. Node.js 5.4): v12.13.1
  • Operating System and version (desktop or mobile): macOS Catalina 10.15.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.