Skip to content

Commit

Permalink
skip: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
happyhj committed Jan 16, 2018
1 parent 8c9e513 commit 5cf8825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/PanoImageRenderer/ImageLoader.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ describe("ImageLoader", function() {
image.src = "./images/PanoViewer/only-used-for-destroy-test.png";

// When
inst.onceLoaded([image], function (img) {
inst.onceLoaded(image, function (img) {
// Then
const srcToken = img.src.split("/");

Expand All @@ -278,7 +278,7 @@ describe("ImageLoader", function() {
image.src = "./images/PanoViewer/not-exist.png";


inst.onceLoaded([image], function() {}, function(img) {
inst.onceLoaded(image, function() {}, function(img) {
// Then
const srcToken = img.src.split("/");
expect(srcToken[srcToken.length - 1]).to.be.equal("not-exist.png");
Expand Down

0 comments on commit 5cf8825

Please sign in to comment.