Skip to content

XAPI-00146/XAPI-1047 - Tests only validate single statement, no test for array of statements #254

@martinholden-skillsoft

Description

@martinholden-skillsoft

The Spec here:
https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#212-post-statements

States the statement resource should accept "An array of Statements or a single Statement to be stored."

The tests only test a single statement payload:
XAPI-00147 -

describe('An LRS\'s Statement Resource accepts POST requests (Communication 2.1.2.s1, XAPI-00147)', function () {

XAPI-00146 -

describe('An LRS\'s Statement Resource upon processing a successful POST request returns code 200 OK and all Statement UUIDs within the POST **Implicit** (Communication 2.1.2.s1, XAPI-00146)', function () {

The tests should be duplicated and tests with payloads of:

  • Single statement as an array
  • Multiple statements as an array

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions