mirror of
https://github.com/scratchfoundation/scratch-html5.git
synced 2024-12-11 08:11:25 -05:00
23 lines
664 B
JavaScript
23 lines
664 B
JavaScript
/* jasmine specs for primitives/LooksPrims.js go here */
|
|
|
|
describe ('LooksPrims', function() {
|
|
var looksPrims;
|
|
beforeEach(function() {
|
|
looksPrims = LooksPrims;
|
|
});
|
|
|
|
describe('showBubble', function(){
|
|
var sayBlock, targetSpriteMock;
|
|
beforeEach(function() {
|
|
sayBlock = {'args': ['what to say']};
|
|
targetSpriteMock = targetMock();
|
|
interp = interpreterMock({'targetSprite': targetSpriteMock }, {'arg': sayBlock});
|
|
|
|
});
|
|
it('should return do something', function() {
|
|
spyOn(targetSpriteMock, "showBubble");
|
|
showBubble(sayBlock, "say");
|
|
expect(targetSpriteMock.showBubble).toHaveBeenCalled;
|
|
});
|
|
});
|
|
});
|