expect...toEqual check for Symbols

This commit is contained in:
leoni laetitia
2021-01-31 22:32:58 +01:00
parent 1320b0614f
commit 3234d475cd
6 changed files with 108 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright (c) 2008-2020 Pivotal Labs
Copyright (c) 2008-2021 Pivotal Labs
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the

View File

@@ -1,5 +1,5 @@
/*
Copyright (c) 2008-2020 Pivotal Labs
Copyright (c) 2008-2021 Pivotal Labs
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the

View File

@@ -1,5 +1,5 @@
/*
Copyright (c) 2008-2020 Pivotal Labs
Copyright (c) 2008-2021 Pivotal Labs
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -5172,16 +5172,15 @@ getJasmineRequireObj().MatchersUtil = function(j$) {
};
function keys(obj, isArray) {
var allKeys = Object.keys
? Object.keys(obj)
: (function(o) {
var allKeys = (function(o) {
var keys = [];
for (var key in o) {
if (j$.util.has(o, key)) {
keys.push(key);
}
}
return keys;
// eslint-disable-next-line compat/compat
return keys.concat(Object.getOwnPropertySymbols(o));
})(obj);
if (!isArray) {

View File

@@ -1,5 +1,5 @@
/*
Copyright (c) 2008-2020 Pivotal Labs
Copyright (c) 2008-2021 Pivotal Labs
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the