Skip to content

Commit b466330

Browse files
committed
return language-javascript at the end
1 parent 2de9091 commit b466330

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/snippet-loading-spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ describe("Snippet Loading", () => {
9393

9494
describe("::loadPackageSnippets(callback)", () => {
9595
beforeEach(() => { // simulate a list of packages where the javascript core package is returned at the end
96-
atom.packages.loadPackage('language-javascript'),
97-
atom.packages.loadPackage(path.join(__dirname, 'fixtures', 'package-with-snippets'))
96+
atom.packages.getLoadedPackages.andReturn([
97+
atom.packages.loadPackage(path.join(__dirname, 'fixtures', 'package-with-snippets')),
98+
atom.packages.loadPackage('language-javascript')
99+
])
98100
});
99101

100102
it("allows other packages to override core packages' snippets", () => {

0 commit comments

Comments
 (0)