describe('#buildResponse', function() {

  it('returns a response hash', function() {
    expect(buildResponse('session attributes', 'this is mars')).toEqual({
        version: "1.0",
        sessionAttributes: 'session attributes',
        response: 'this is mars'
    });
  });
});

describe('#buildSpeechletResponse', function() {

  it('returns a hash with speech output', function() {
    expect(buildSpeechletResponse('spaceship', 'this is mars', '', true)).toEqual({
        outputSpeech: {
            type: "PlainText",
            text: 'this is mars'
        },
        card: {
            type: "Simple",
            title: 'spaceship',
            content: 'this is mars'
        },
        reprompt: {
            outputSpeech: {
                type: "PlainText",
                text: ''
            }
        },
        shouldEndSession: true
    });
  });
});

@@ -367,16 +367,27 @@
 h output
+ and a card
 ', funct
@@ -866,24 +866,506 @@
  true%0A    %7D);%0A  %7D);%0A%7D);%0A
+%0Adescribe('#buildSpeechletResponseWithoutCard', function() %7B%0A%0A  it('returns a hash with speech output', function() %7B%0A    expect(buildSpeechletResponseWithoutCard('this is earth', '', true)).toEqual(%7B%0A        outputSpeech: %7B%0A            type: %22PlainText%22,%0A            text: 'this is earth'%0A        %7D,%0A        reprompt: %7B%0A            outputSpeech: %7B%0A                type: %22PlainText%22,%0A                text: ''%0A            %7D%0A        %7D,%0A        shouldEndSession: true%0A    %7D);%0A  %7D);%0A%7D);%0A

write test for buildSpeechletResponseWithoutCard